Date: Sat, 30 Jun 2007 14:32:26 -0700 From: Alan Gresley <[EMAIL PROTECTED]> Subject: Re: [css-d] centering elements via margin: auto
. . . If the body had no text alignment (the default is text-align: left) then you don't have to restate text-align: left on any element unless an ancestor has text-align: center already. The CSS is less complicated if you only center what needs to be centered. . . . Apart from text-align: center centering text, it also centers images. The real poison is that for IE, text-align: center will center all descendant elements as well, so be careful. The text-alignment that you would achieve with the CSS as above could be stated. #container {margin 0 auto;} Kind Regards, Alan Many thanks, Alan. - Michael Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail at http://mrd.mail.yahoo.com/try_beta?.intl=ca ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- 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/