On 17/07/06, Alex Foley <[EMAIL PROTECTED]> wrote:
>
> You could add a containing element around all of the <div>s, say
>
> <div id="container">
>
> And then set the left and right margins to auto:
>
> div#container {
>     margin: 0 auto;
> }
>
> Alex Foley
>
> juliann wheeler wrote:
> > You can view my design at:
> >
> > http://www.agentevaluator.com/juliann/brown/indexbrown.html
> >
> > How do I get this to center on the page?
> >
> > thanks!
> >


Not as simple as the previous comment. It will work, but you need to set
text-align: center on the container and text-align: left on the child
container to appease IE. This is a hack, so a better approach in my opinion
is to use this:

#wrapper {
position: relative;
left: 50%;
width: (whatever)
margin-left: -(half of whatever)
}




-- 
http://www.web-buddha.co.uk
http://www.projectkarma.co.uk
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to