Tip: Internet Explorer DIV Height Problem
Yes i know, i’m for GWT, Ext, Dojo, Zk, and all the other frameworks that made life easy to web developers abstracting the HTML/CSS and most part of the Js layers, but I come from hard and deep JS/DHTML/CSS hand-programming (HttpXMLRequest sweet HttpXMLRequest) then somethimes i help my collegues to solve classic HTML/Js problems…
One of this is the Interent Explorer buggy way of manage div heights: Any height less than 20px is rendered as 20px.
I just give to you some techniques to hack this annoying IE bug:
1) Put a comment inside an empty div:
<div style="height: 10px;"><!-- --></div>
2) Put a inside the div and add this to its style: font-size:1px;
line-height:0.
<div style="font-size: 1px; line-height: 0pt;"> </div>
of course the styling rules can be put in a css class…
http://archivist.incutio.com/viewlist/css-discuss/39150
http://www.codingforums.com/showthread.php?t=46408
Tags: browser compatibiltiy, browser issues, css, hacks, html, internet explorer, javascript
No Comments
Comments RSS
TrackBack Identifier URI
No comments. Be the first.
Leave a comment


![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=67e05d67-3066-46b2-809f-230ad0749b6e)