CSS: Height of an Empty Layer in Internet Explorer

February 2, 2010


In Internet Explorer (IE), an empty layer is given a default height.  Even if you specify a height that is less than this default height (something like 5px or 6px), your values will be ignored.  To solve this, insert an empty comment within the layer:

<div style="width: 100%; height: 11px;">
        <!-- -->
 </div>



Bookmark and Share

Tags: CSS

blog comments powered by Disqus