Set body font-size to 62.5% for Easier em Conversion


/ Published in: CSS
Save to your folder(s)

If you would like to use relative units (em) for your font sizes, declaring 62.5% for the font-size property of the body will make it easier to convert px to em. By doing it this way, converting to em is a matter of dividing the px value by 10 (e.g. 24px = 2.4em).

URL: http://sixrevisions.com/css/10-random-css-tricks-you-might-want-to-know-about/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.