Click to See Complete Forum and Search --> : OK - I feel stupid.


slaughters
08-11-2008, 11:27 AM
I can not figure out why a simple page I'm puttjng together will not position it's main content in the center of the page:
http://www.stansight.com/vb/index2.html

I'm using the below CSS for the main page container:

#Container {
margin: 0 auto;
width: 1000px;
}

(full css here: http://www.stansight.com/vb/vb.css)

Works in Firefox, but why is it not centering in IE7 ?

ryanbutler
08-11-2008, 11:37 AM
Put a full docytpe.

KDLA
08-11-2008, 11:58 AM
body {
background-color: #000000;
margin: 0px;
padding: 0px;
text-align: center;
}
#Container {
margin: 0 auto;
width: 1000px;
text-align: left;
}

slaughters
08-11-2008, 12:59 PM
Thanks KDLA, that worked and solves my immediate problem . :)

BUT - I'm also going to follows ryan's suggestion and get it to work in a strict doc type (probably have to redo - all my relative offsets though :( )

Thank you both for your help.

KDLA
08-11-2008, 01:09 PM
(It'll work for a strict doctype.)