CSS: inline-block and overflow:hidden

When an element has a display value of inline-block and an overflow (or overflow-x) of hidden, its container gets a few px of extra height. Here’s an explanation of why… https://www.brunildo.org/test/inline-block.html.

A fix, where applicable, is to add vertical-align: top to the element.

2 Comments

Leave a Reply

Your email is never shared.Required fields are marked *