Expand|Select|Wrap|Line Numbers
- <div id="a" style="position: absolute; top:5px; left: 5px; width:100px; height:100px; border: 1px solid red;">
- <div id="b" style="position: absolute; top:0px; left: 0px; width:100px; height:99px; border: 1px solid red;"></div>
- <div id="c" style="position: absolute; top:99px; left: 0px; width:100px; height:1px; border: 1px solid red;"></div>
- </div>
- <br /><br /><br /><br /><br /><br /><br />
- <script type="text/javascript">
- document.writeln("style height: "+ document.getElementById("c").style.height+"<br />");
- document.writeln("client height: "+document.getElementById("c").clientHeight+"<br />");
- document.writeln("offset height: "+document.getElementById("c").offsetHeight+"<br />");
- </script>
I have no idea what is going on here... I tried a few extra style attributes (like line-height:0px) but haven't found anything to remedy the situation...
Inspecting the DOM, IE shows the correct style attributes (i.e. height: 1px) but theclientHeight and offsetHeight attributes are both 15px...
You can see images of what is displayed here:
http://blog.bluecaldera.com/2006/11/...s_ie_feat.html
Any help would be greatly appreciated!
Thanks