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 do decide a value for font-size-adjust?

I understand that the font-size-adjust sets font-size based on the height of lowercase. It's is useful when the browser have to use replacement font and it has significantly different ratio of lower case letter to the size of the font.

But, how do i decide font-size-adjust value?? for instant if font-size-adjust:0.56 how do you get 0.56??

1 Answer

Steven Parker
Steven Parker
231,248 Points

The font-size-adjust represents the ratio of lower-case to upper-case height. So a value of .56 might just be the standard ratio for the font being used. For an example standard font-height of 16px, this value says the lower-case characters should be 9px high.

For more details, see the MDN page on font-size-adjust.