SOLVED: Line Height default unit

Bricks Version: 1.5
Browser: Firefox
OS: Windows
URL: try builder

The default unit for line height is unknown. Doesn’t show. Expected it to be px as the font size is on px. A bug or just the way it’s built. Version 1.5 can choose, version 1.5.2 cant choose, just need to guess.

Hi Bonnie,
We’re using a unitless line-height, as it works with every font-size unit and is most practical. Accordingly, not a bug :slight_smile:

Surely you can write any imaginable unit in the field, as with all other fields.

<number> (unitless)

The used value is this unitless <number> multiplied by the element’s own font size. The computed value is the same as the specified <number>. In most cases, this is the preferred way to set line-height and avoid unexpected results due to inheritance.

Best regards,
timmse