Hello, almost two years ago I had trouble horizontally centering an absolutely positioned element:
On Tuesday 24 October 2006, Gunlaug Sørtun wrote: > Daniel Kabs wrote: > > Please see the test page at > > http://www.mobotixserver.de/~daniel/css_center_horizontally.html > > > > The page works on Firefox and Konqueror but not on IE 6.0 (SP2). > ... > IE6 can *not* relate A:P elements to opposite sides of > parent-container, so only one of these properties is used... > left: 0; > right: 0; > ...not both. IE ends up positioning '.center' according to 'left: 0;' > and ignores 'right: 0;'. > Result: the auto-margins becomes useless in that browser. I found a workaround by setting the element to relative positioning and wrapping it with an absolutely positioned element instead. This now works on IE 6 and 7, too. I updated the test page and the css wiki page accordingly. Cheers Daniel ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
