View online
How do you set the CSS font-size property?

CSS makes available a considerable variety of length units you can use to set the font-size in your project.

It's easy to get confused or frustrated and simply go back to using the simple px unit: it's familiar and keeps everything fixed, no nasty surprises there.

However, keeping your typeface at a fixed dimension while the web lives in a fluid environment doesn't always yield the best results.

Knowing which units to use, when and how is not an easy task. If you need help, Asha Laxmi has written a thorough guide on this topic, with live demos and use cases to go with it.

Don't miss her article in the links below


Have you filled out our CSS Survey 2017? If you haven't done so already, there is still time.

We'd love to have your contribution!


Maria Antonietta Perna, HTML/CSS Editor


Hire Top Designers Faster

The search is over. Let Toptal connect you with the world's most talented web and UX designers. Get started today.