...">

IE div shorter than 20 pixels?

It looks like my height <div>in IE (7) is at least 20px:

<div style="background: green; height: 1px;">

</div>

Using the code above (both with html tags and without tags) the height of the div cannot fall below a certain value (I think it is 20px). Any ideas?

+3
source share
2 answers

Try to add overflow:hidden;.

+3
source

Andy hey right. It seems you have an empty space inside a div that displays as a space that has a height of 20px. Therefore, either hide the overflow or remove the spaces.

+1
source

Source: https://habr.com/ru/post/1750149/


All Articles