Flemming is correct, but you may need an additional step, to un-center (is that a word?) the content inside this container.
There is a full explanation here - "CSS Centering - fun for all! ": http://www.maxdesign.com.au/presentation/center/ Russ > > Note that this won't work i IE 5.x > > Here you have to set > > text-align: center; > > in the element containing the element you want to center. > > > Flemming Hoffmeyer > > [EMAIL PROTECTED] > www.smartpage.dk > > > -----Original Message----- > From: Chris Stratford [mailto:[EMAIL PROTECTED] > Sent: 7. februar 2004 14:45 > To: [EMAIL PROTECTED] > Subject: RE: [WSG] Ok - Stupid Question > > > Ahh thanks! > Perfect! > > margin-left: auto; > margin-right: auto; > > worked great! > > > www.neester.com > > check it out now :D > its my first shot at XHTML so im also learning more about CSS while im > at it! > :) > > margin-left: auto; > margin-right: auto; > > seems a little dodgy though, its not a set result... > I mean, Float: center would be a lot! Simpler! > > ----------------------------- > Chris Stratford > [EMAIL PROTECTED] > www.neester.com > ----------------------------- > > > -----Original Message----- > From: Lea de Groot [mailto:[EMAIL PROTECTED] > > Sent: Sunday, February 08, 2004 12:22 AM > To: [EMAIL PROTECTED] > Subject: Re: [WSG] Ok - Stupid Question > > > On Sun, 8 Feb 2004 00:02:09 +1100, Chris Stratford wrote: >> so how the hell do I center the page?? > > There's a couple of methods. > One is to use > margin-left: auto; > margin-right: auto; > on the *parent* block. > (Ummm... I'm sure I havent phrased that properly) > > Anyway, the Incutio CSS wiki has a full discussion: > http://css-discuss.incutio.com/?page=CenteringBlockElement > > Float: center; would be nice, wouldnt it? :) > > HIH > Lea > ~ hi guys - first post :) ***************************************************** The discussion list for http://webstandardsgroup.org/ *****************************************************
