DEV Community

Discussion on: 5 Useful Little CSS Tricks

Collapse
 
baltz profile image
baltz

The preferred way to use 'line-height' is with integer, lika 'line-height: 1;'. This number multiplied by the element's font-size.

Collapse
 
philnash profile image
Phil Nash

This wouldn't have the effect of vertically centering the text in its parent though. This is a particular technique, otherwise I agree that using unit-less values is more useful.