Skip to content

Comment on When does white space matter in HTML? (2016)parent

Comments

They’re elements that appear as inline to their surroundings, and blocks to their contents. In what way wouldn’t you want it to render white space in the same way as other inline elements?

If you’re misusing inline-block for generic layout then you really should be looking at Flexbox and not trying to neuter the intended behaviour.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.