RSSAll Entries Tagged With: "ex"

Unitless Line Heights in CSS

Unitless Line Heights in CSS

One of my fellow designers asked me the other day, what are unitless line-heights and how do they work. And I remembered what Eric Meyer’s post on ‘Unitless line-heights’. I was new to designing then and used the old methods of specifying line height in pixels or percentages. Well that was until I came across [...]

Difference between 'em' and 'ex' units

Difference between 'em' and 'ex' units

‘em’ and ‘ex’ units are both relative units; viz. they are measured in relation to other values. In CSS, one ‘em’ is defined to be the value of font-size of a given element. For example, if the font-size of a paragraph element is 12 pixels then 1em = 12 px. But as I already mentioned [...]