So if I've got two sibling HTML elements like so:
<div>
<span id="child-one">ChildOne</span>
<span id="child-two">ChildTwo</span>
</div>
And one, but not both, of these two sibling elements have "display:inline-block" AND "overflow:hidden" in their styling:
#child-one {
display: inline-block;
}
#child-two {
display: inline-block;
overflow: hidden;
}
Then one sibling is shown offset a small distance below the other. (See it happening here: https://jsfiddle.net/reyan62/oqc71f25/) (P.S. I'm using Chrome)
Does anyone have an explanation for this? It seems very odd. I'm not super familiar with what "display:inline-block" does though.
Thanks!