Cynthia Page wrote:
> Dear Shawn and Georg,
>
> Thanks so much!
>
> Will this not work in IE6 because of width:auto? Does one need to
> declare the height:1%, and is this for the HasLayout trick?
IE/win (all versions) needs a 'hasLayout'[1] trigger on that #floatwrap,
and 'overflow: hidden' only acts as such a trigger in IE7, while
'height: 1%' acts as a 'hasLayout' trigger in all versions.
The 'width: auto' is default, and doesn't have to be written since
IE/win understands that much anyway.
Note that the combination of 'overflow: hidden' and 'height: (any
value)' may result in hidden content in some even older IE/win versions.
The safest solution is actually to write two sets of styles...
#floatwrap {
overflow: hidden;
margin: 10px;
border: thin solid #FF6600;
}
* html #floatwrap {
overflow: visible;
height: 1%;
}
...to make it work reliable in all IE/win versions.
regards
Georg
[1]http://www.satzansatz.de/cssd/onhavinglayout.html
--
http://www.gunlaug.no
______________________________________________________________________
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/