[thelist] Centering in IE6?

Scott Schrantz scotts at rci-nv.com
Tue Mar 19 11:11:01 CST 2002


> -----Original Message-----
> From: Luther, Ron [mailto:Ron.Luther at COMPAQ.com]
>
> Just tried it, (with and without a text-align: "center";), no go.
>
> IE6 still don't like it.  [It *does* take the color
> specifications - so it is reading in the CSS.
> It's just kinda stuck at the left margin.]

Try removing the quote marks from the CSS.
div {text-align: center;}
That made it center in my IE6.

Or, if you want the <div> centered, but the text to stay left-aligned:
Change the <div> to <div class="body">, since you have three <div>s but you
only want one of them centered. Then,
div.body {
width: 550px;
margin-left: auto;
margin-right: auto;
}
margin: auto usually won't work without specifying a width.



More information about the thelist mailing list