re: 5 Useful Little CSS Tricks VIEW POST


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


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.

code of conduct - report abuse