/ html

HTML/CSS quirks

This is some thing I've known that exists for a while. Thought its a good time to "pen" it and share.

If you've ever wonder why there's a gap between 2 inline-block elements, here's the solution for you.

White in HTML space matters for inline-block elements.

See the pen below:

See the Pen HTML/CSS quirks by Roy (@resting) on CodePen.

Someone shared with me this article on csstricks.

It has more quirky ways of solving the quirky problem.

HTML/CSS quirks
Share this