In ie6 and ie7, the margin-bottom
from the p
is being applied to both the p
AND the div
just below it.
In other words, this code will apply a margin-bottom
of 20px to both the p
and the div
in ie6 and ie7. No problems in any version of FF, Opera, Chrome/Safari or ie8.
<p style="margin-bottom: 20px;">Hello world!</p>
<div style="float: left; display: inline">
Hello world, part deux.
</div>
Of course, removing the float from the div remedies the problem. Which ie/CSS bug is this, if any, and what should I search for to figure out how to fix it?
p.s. I cannot assign a width to the div
, unfortunately.