Thierry Koblentz wrote:
>I'm not sure if this is a "safe" solution; I wouldn't use float without an
It is safe for all CSS 2 browsers with the sole exception of IE5/Mac.
That browser, and only that browser, requires the explicit width.
The strict width requirement has been removed as of CSS 2.1, so no
new browsers will require an explicit width for floated elements,
either. If shrink-wrapping is the preferred behavior, I would
suggest leaving out the width for most browsers, and feeding the
explicit-width approximations to IE5/Mac only. (For filters to use
for this purpose, see the Wiki.)
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/