I am making a navigation with menu items positioned in one line:
<div class="wrapper">
<div class="tt-inl-wrap">
<a class="tt-inl-bl" href="/">Home</a>
<a class="tt-inl-bl" href="/">Club</a>
</div>
</div>
Here is the css:
.wrapper { width: 100%; max-width: 1240px; min-width: 350px; padding: 0 30px; margin: 0 auto; }
.tt-inl-wrap { font-size:0px !important; }
.tt-inl-wrap > * { font-size:initial; }
.tt-inl-bl { display:inline-block; }
As you can see I am setting a font size of the wrapper of inline elements (.tt-inl-wrap) to 0px in order to eliminate horizontal spaces between inline items. But there is also an unexplicable vertical empty space at the bottom of .tt-inl-wrap element (inline elements have 50px height while wrapper has 55px), see images:
I've seen this weird vertical gape of a wrapper of inline elements many times before, but never understood the cause.
Is there an explanation for this vertical whitespace?