Forum Moderators: not2easy

Message Too Old, No Replies

3px high div in IE

         

socken

5:11 am on Sep 28, 2006 (gmt 0)

10+ Year Member



Hi all!

I'm trying to create a very thin line somewhere in my CSS-Design. It should get a height of 3px. As always, IE is a pain in the a** (arm).

It looks to me, that IE uses a minimum height at about line-height. How do I get IE to use 3px like it should?

Here's an example:


#test {
width: 90%;
height: 3px;
background-color: green;
}

DrDoc

5:13 am on Sep 28, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



font-size: 1px;

line-height: 1px;

socken

5:29 am on Sep 28, 2006 (gmt 0)

10+ Year Member



Perfect! Thanks..

Actually the font-size: 3px; is sufficient already. I always tried to use line-height, but that doesn't change anything!

Thanks for the quick help!

penders

10:34 am on Sep 28, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Same problem as this recent thread, with perhaps an alternative (cleaner) solution:
[webmasterworld.com...]