/ Published in: CSS

For instances where you have an empty div that is less than about 10-15px in height. IE assumes it should contain something and allots room for text.
I first found this on the webdeveloper.com forums.
The kicker here for me was the "font-size:0" declaration. Cheers!
I first found this on the webdeveloper.com forums.
The kicker here for me was the "font-size:0" declaration. Cheers!
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
div{ font-size:0; line-height:0; margin:0; padding:0; }
URL: http://www.webdeveloper.com/forum/showthread.php?t=66024
Comments
