Previous Message
Next Message

About centering a page...

Sent by ZEFXIS - Nick Mavros on 4 January 2005 10:10


Thank you for your response.

I did it your way but I had problems with the objects which are positioned 
absolute.
So I made some changes. First of all I placed the {text-align: center;} in 
the body tag and the { text-align: left; } in the #wrapper.
Then I used  position: relative; to the #wrapper.
This seems to solve my problem and it works fine in IE 5, IE6 and FF.

Thanx


<Lukasz Grabun> wrote:

>This is *not* the way to center page. You achieve this effect by
>setting width and applying margin: 0 auto *and* text-align: center to
>make it all work in IE 5.0 (?). For example:
>
>#wrapper {
> width: 700px;
> margin: 0 auto;
>  text-align: center;
>}
>
>To get rid of unrequired center layout in #content, apply following rule:
>
>#content { text-align: left; }


______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: