Forum Moderators: not2easy
If you have a DIV with "float: right" nested within a SPAN with "display: inline-block", then the SPAN is not rendered inline. All works fine if the DIV is "float: left", though, so it's obviously a bug.
<html>
<head><title>test</title></head>
<body>
11111
<span style="display: inline-block;">
<div style="float: left;">22222</div>
</span>
33333
</body>
</html>
In other news, I'm really disappointed that NN7 doesn't support "display: inline-block" at all. It's a great mechanism for simplifying many CSS layouts.
1. isn't it 'illegal' to have block level elements within inline elements, i.e. a DIV within a SPAN?
2. display: inline-block is not in CSS 2, which is the latest W3C recommendation on CSS. It gets mentioned in CSS 2.1 and 3, but these are not recommendations, so you can't blaim browser manufacturers for not supporting it...
(Not blaming Netscape... just disappointed that they haven't included support for this CSS2.1 propery yet, since it really is powerful. It's been in IE since 5.5, and I believe Opera supports it as well.)
It works in Opera 7, IE5.5+, but not Netscape (again, no blame, just disappointment...).
Notice how clean the code is. We have multiple columns, centered horizontally, "shrink-wrapped" widths, and all done without float or absolute positioning.