Making line height work with spans

November 27, 2017
Category: TIL
Tags: CSS

The line-height attribute doesn’t work on span by default. If you need to use line-height on a span, you’ll need to set display:block; on the span element to make it display as a block element (like <p>).

Find this post useful?

Buy me a coffeeBuy me a coffee