cwolves
asked on
weird ie bug
okay, I'm looking for an explination as to -why- this is happening. There's half a dozen things I know I can do to fix it, but I'm trying to avoid writing code that does the same thing in the future (it's the 3rd time it's happened to me).
open this in IE:
<html>
<body>
<style>
.iTitle{
width: 30%;
font-size: 11px;
float: left;
}
.iItem{
width: 70%;
font-size: 11px;
float: left;
}
</style>
<div class="iTitle"> </div>
<div class="iItem"> </div>
<div id="autoship" style="width:100%;display: none">
<!--the length of visible content in this div determines the amount of "ghost" content that show up"-->
blah blah
</div>
<div class="iTitle">"Ghosted Content"</div>
<div class="iItem"> </div>
</body>
</html>
fixes:
- remove float from iitem
- put <br> tags after the first iitem tag
- change iitem.width = 69%
open this in IE:
<html>
<body>
<style>
.iTitle{
width: 30%;
font-size: 11px;
float: left;
}
.iItem{
width: 70%;
font-size: 11px;
float: left;
}
</style>
<div class="iTitle"> </div>
<div class="iItem"> </div>
<div id="autoship" style="width:100%;display:
<!--the length of visible content in this div determines the amount of "ghost" content that show up"-->
blah blah
</div>
<div class="iTitle">"Ghosted Content"</div>
<div class="iItem"> </div>
</body>
</html>
fixes:
- remove float from iitem
- put <br> tags after the first iitem tag
- change iitem.width = 69%
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No prob, it was a learning experience for me too lol
ASKER