Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS How to Make a Website Customizing Colors and Fonts Resize Text

Kenneth Simpson
Kenneth Simpson
1,162 Points

Where do you come up with the px amount or the ems amount?

How do you figure out what px to set a font to or what number em? I just am confused. Is there a table to look at to determine what size of px and ems that you will need?

Usually these values are set in the layout that you implement or the client's specifications. Keep in mind that the normal browser font-size is of 1em = 16px. You should try playing in your editor with a few text-size properties and set them to different sizes and see how that goes.

1 Answer

Hi Kenneth,

It is all a matter of personal preference. There is no "standard" value. 1 em = 16px. If u want to the font to be lager then 16 px then put in a value higher then 16px or higher then 1 em.

check out this websites if u want to toy around with it: http://pxtoem.com/