Solution (Clean Markup Solution)
Date of the Solution
Mon Aug 17 14:58:01 2009
Fixed Versions
All of the affected
Description
The solution involves getting rid of "layout" from #text. Let's see how we accomplished that in our demo:
Fixed demo is available on a separate page
- HTML Code:
<div id="container">
<p id="floated">
This is a left floated block.
</p>
<p id="text">
This text should flow around the floated block, on its right
side and below. This text should flow around the floated block, on its
right side and below.
</p>
</div>
- CSS Code:
#floated {
float: left;
width: 6em;
margin: 1em;
}
#container {
width: 14em;
}
What I did is add an extra element - <div> #container - around both #text and #floated, then I moved width from #text onto #container effectively rendering the same demo as the original.
I admit, this isn't exactly a "solution", but rather a case-example. Since the bug is caused by "layout" the solution would involve getting rid of it, and methods for accomplishing it would definitely vary.
Lastly, I'd like to add that by removing "layout" from the element you may run into "Disappearing Content Bug"; since we can't fix that bug by giving "layout", you could try adding { position: relative; } instead. If that fails, you may need to rethink your approach.