[thelist] Centering in IE6?

Mark Howells mark at mountain.ch
Tue Mar 19 11:09:01 CST 2002


> How do I get a nice 'div' to center in IE6?

#myDiv{
width:(value smaller than the screen width);
margin-left:auto; margin-right:auto;
}

You /must/ define a width for this to work.

Regards
Mark Howells
<http://www.mark.ac/evl/>




More information about the thelist mailing list