Setting a div height to 0px does not seem to work.
The div expands to show it
Try to also set line-height: 0;
And if you want to hide your div
completely, use display: none;
Try overflow:hidden
You haven't said which browser you're using, but I'm assuming IE, as it's the only browser I know of which mistakes height
for min-height
. Like everyone else has already said, overflow:hidden;
will work, or line-height: 0;
, but you only need one of them.
Setting height: 0;
will have allready triggered IEs hasLayout, so no need for zoom:1;
in this case.
This works for me:
.zippy{
padding: 0;
height: 0;
overflow: hidden;
}
Thanks.