This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Site Ratings & Reviews > December 2003 > centreing the page in css





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author centreing the page in css
mark | r

2003-12-03, 7:25 pm

its margin:auto or something, only i cant get it to work... do you do it on
the body or on an encompassing div?

mark


William Tasso

2003-12-03, 7:25 pm

mark | r wrote:
quote:

> its margin:auto or something, only i cant get it to work... do you do
> it on the body or on an encompassing div?
>



IIRC: you do it on the block level element you wish to centre. check the
archive for news:alt.html - it's a FAQ there.

--
William Tasso - http://WilliamTasso.com


Safalra

2003-12-03, 7:25 pm

"mark | r" <markDONOT@SPAMMEnmd.freeuk.com> wrote in message news:<3fa7910a$0$9472$cc9e4d1f@news.dial.pipex.com>...
quote:

> its margin:auto or something, only i cant get it to work... do you do it on
> the body or on an encompassing div?



See:

http://bluerobot.com/web/css/center1.html

--- Stephen Morley ---
http://www.safalra.com
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews