Forum Moderators: open
<div style=\"position:absolute; left:90px; top:0px; width:20px; height:0px; background-color:#87ceeb; border: solid #000000 1; margin:1;\"></div>
stills shows a block with a non-zero height. any ideas?
font-size:0 (tho it is a handy trick). You just need to make sure there is no text in your div. Remember that white space counts, so...
<div id="bar1">
</div>
..is actually a div containing a single space.
Where as..
<div id="bar1"></div>
Some browsers ignore this but other (quite rightly) do not.
You get the same problem with..
<img src="gif1.gif">
<img src="gif2.gif">
instead of...
<img src="gif1.gif"><img src="gif2.gif">