RSSAll Entries Tagged With: "relative values"

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 [...]