Referring to this example: http://jsfiddle.net/CZk8L/4/
I'm puzzled by why the CSS style overflow:hidden
is creating extra space at the bottom of the first li
. Can anyone shed some light on this?
This has been bothering me for hours, as I need the
position:relative; overflow:hidden
on the first li
to hide and move a form inside it (following the cursor).
I've tried setting height
or max-height
on each element, as well as experimenting with line-height
, but nothing seems to work.
One potential solution could be adding the same
position:relative; overflow:hidden
to the second li
to realign both elements. However, there still remains extra space beneath them, and I'd like to understand the underlying cause.
Thank you in advance for your assistance!