[thelist] Centering divs in CSS

DESCHAMPS Stéphane DvSI/SICoR stephane.deschamps at francetelecom.com
Wed Nov 6 10:06:00 CST 2002


> -----Message d'origine-----
> De : thelist-admin at lists.evolt.org
> [mailto:thelist-admin at lists.evolt.org]De la part de Chris Evans
>
> I would like to center a div using CSS.  Using {margin-right: auto;
> margin-left: auto;} works in Mozilla, but not IE6.
>
> Any ideas?  I'd like it to be as simple as possible.

Hi Chris,
specify a width for your div.
see http://bluerobot.com/web/css/center1.html

HTH
s t e f
http://www.nota-bene.org/




More information about the thelist mailing list