Refering to this : http://jsfiddle.net/CZk8L/4/
Can anybody explain to me why the overflow:hidden
style generates this extra space at the bottom of the first li
?
This is driving me crazy for hours.
The fact is I need the position:relative; overflow:hidden
on my first li
because of the form
that I want to hide and move inside it (to follow the cursor).
I tried to set some height
or max-height
on each element, but it did not work.
I also tried some line-height
A solution to re-align both li
could be to add the same position:relative; overflow:hidden
on the second li
, but it still be the extra space under them and I would like to understand the root cause.
Thanks for your help!
li {float:left}
is efficient (http://jsfiddle.net/CZk8L/8/). I still do not understand why this space appears with thedisplay:inline-block
. And your fiddle does not work neither : I want to keep deoverflow:hidden
on the firstli
. Thanks anyway. – M'sieur Toph' Mar 28 '14 at 2:53