How to Set 1px Div Height on Ie
I just want a div which has a height of 1 pixel, with background color that will act as a separator. But IE6 seems not to understand this si...
https://www.czetsuyatech.com/2021/07/ie-set-1px-div-height.html
I just want a div which has a height of 1 pixel, with background color that will act as a separator. But IE6 seems not to understand this simple tag:
.className { height: 1px; padding; border-bottom: 1px solid #e8e8e8; }
I tried several other tags like: line-height: 1px, overflow: none... But none work :-).
Luckily, I discover that putting an empty comment inside the div tag will do the trick. Which is:
IE6 is such a pain :-). I keep on wondering why too many users still use this browser.
.className { height: 1px; padding; border-bottom: 1px solid #e8e8e8; }
I tried several other tags like: line-height: 1px, overflow: none... But none work :-).
Luckily, I discover that putting an empty comment inside the div tag will do the trick. Which is:
<div><!-- --></div>
IE6 is such a pain :-). I keep on wondering why too many users still use this browser.
Post a Comment