Sent by Lukasz Grabun on 4 January 2005 09:09
On Tue, 4 Jan 2005 10:59:52 +0200, ZEFXIS - Nick Mavros
[EMAIL-REMOVED]> wrote:
> In order to center a page I created a <div id="center"> right after the
> <body> and used the following rules :
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; }
--
Lukasz Grabun
http://www.grabun.com/
______________________________________________________________________
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/