D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] website @ center

 

baslake wrote:
Posted by "Barry Ayres" <baslake@xxxxxxxxxxxxxxxx>


hi all,
got my flame proof suite on so here goes,,,prolly a simple question (well, tis if you know) anybody know how to get one's own website to display center screeen on a wide screen display ? it displays o.k. on a normal screen and have seen sites that are central on my wide screen so know it can be done,,, but how ?? i pity website designers the grief they have to go through !! (you guessed, i struggle)
bas.
--

If your site is table based, add align="center" attribute to the table tag. ie:

<table width="800" align="center">
...
</table>

If your site is <div> based, use CSS:

<div id="mainpage" style="margin-left:auto;margin-right:auto;">
...
</div>

Alternately, put the style attribute contains into an external CSS file to be included in the head section of your site:

#mainpage {margin-left:auto;margin-right:auto;}

Regs
Martin
hi Martin,
thanks for info, will try it out over the weekend when i have some time. the site in question is just a hobby site (nooby first attempt) the link is below, as you know a lot about websites, don't laugh at my attempt (its o.k. i know its crap, but got to learn somehow) any idea's or criticism greatly received ! :)
thanks again,, bas.

--
http://findfor.eu



--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html