Eugene Morozov wrote: > Arian Hojat пишет: >> When you give an element 'layout' in IE6, it will expand to fit the >> content inside ('hasLayout' is a funky IE property that if triggered by >> certain CSS properties causes funky stuff to happen), so its a way of >> containing floats without the use of a clearing element. >> You commonly see this 'triggering' by giving parent element >> width/height, zoom:1, overflow:hidden, etc, to contain the floats >> inside. So people use it on purpose to clear floats so their parents can >> contain them. >> <http://www.satzansatz.de/cssd/onhavinglayout.html,> > > Thank you. But I have exactly opposite problem. I do not want the div to > enclose floating element.
While it is too simple to contain floats in IE, it is next to impossible to uncontain them if the container has layout. > > Seems I must create different stylesheets for IE and other browsers and > maintain them separately. You can't if the container needs a width. Even if you'd manage to let the float stick out of its overflown container via position:relative, this float would be ignored by any following element, see Test E: http://www.satzansatz.de/cssd/acidicfloat.html You'd have to keep it contained in IE, or you'll have to remove the width from the container. Most probably you'll have to reverse engineer this IE behavior in the other browsers by giving in to containing. Ingo -- http://www.satzansatz.de/css.html ______________________________________________________________________ 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/