Solution (Clean Solution)
Date of the Solution
Tue Aug 18 11:32:52 2009
Fixed Versions
All of the affected
Description
Note: this bug is also fixed by the CS solution to "Float Squeeze Weird Gap Bug"
We are going to fix this bug with the IE-bug-fixing Swiss Army knife. No, I am not talking about "layout", even though setting it on our ' element"><p>
would fix the bug in IE7 . Let's see what we have here:
Fixed demo is available on a separate page
- HTML Code:
<div>
<p>
<span>A</span>
<span>B</span>
<span>C</span>
</p>
</div>
- CSS Code:
div {
width: 100px;
}
p {
margin-right: 1px;
}
span {
float: left;
width: 120px;
position: relative;
}
The only thing that has changed is that we have added position
property set to value relative
on our floated elements - ' element"><span>
s. The letter is no longer duplicated neither in IE7