div on explorer have minimum height

liunx

Guest
all i wanted is a div with 3px height!
but ****en explorer will not do it :mad: :mad: :mad:
i've found that when i put inside this div a 1x1px image it DOES get down to size.

how do i force IE to show a div with very small heights (without the 1px image) ?this is getting WEIRD !!
after some experiments i've found that i can put inside the div a comment <!-- -->
and this will be enough !!yeah i also tried that..how weird..no explanation..(well yes, apart that IE sucks)I supose: No content = no height.hmm, if you give it a height of 3px, content or not, it should be 3px high.
If it had no height at all, i would understand that it could be related to the lack of content..but it has some random height, which isn't margin/padding related..weirdIE/Win won't let an element have a height that is less than its line-height.
you can decrease the font-size and line-height OR use overflow:hidden

IE6 is an antiquated piece of junk. (Read the quote.)And I think it smells of elderberry.IE wont let you have the height less than the line height IF the content is text. Even a single blank character counts as text. By NOT having any text content you can adjust the height to as small as you want.felgall, did you not read my reply?
 
Back
Top