> Hi all,
>
> In most browsers, I can do things like
>
>   img.logo { margin: 0 auto; }
>
> which results in the element centred within its parent container.
>
> Of course, this does not work with IE. Short of adding
> a text-align:center to the parent (which is *not* what I want), how
> can one get the same effect with IE?

"Of course" part is wrong here. This does work in IE6+, just make sure
that IE is in "standards-compliant" mode.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnie60/html/cssenhancements.asp

Regards,
Rimantas
--
http://rimantas.com/
______________________________________________________________________
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/

Reply via email to