Forum Moderators: not2easy

Message Too Old, No Replies

Can't set Div height in IE to less than 19px

         

optik

5:31 pm on May 13, 2009 (gmt 0)

10+ Year Member



I'm using Javascript to generate some div's, it works fine and in most browsers I can set the div height to 10px like I need. IE though sets it to 19px for any height setting under 19px, if I set a value higher than 19px it works as normal.

Any ideas?

I've tried setting padding and margin to 0px.

DrDoc

7:35 pm on May 13, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Additionally, add these lines:

font-size: 1px;
line-height: 1;

optik

11:46 am on May 14, 2009 (gmt 0)

10+ Year Member



that's great thanks, I can't believe this job some times.