no

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...

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:


<div><!-- --></div>


IE6 is such a pain :-). I keep on wondering why too many users still use this browser.

Related

web 4977871047616328704

Post a Comment Default Comments

Outsourcing

Are you looking for freelancers in the Philippines? Get in touch.

Donations

If you like what I do, you can support this channel by buying me a coffee. I would be grateful for your contribution! Your donations will help me create more FREE online courses and learning materials for programmers and remote workers.

item