We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

font-size-adjust Redirect 1


The font-size-adjust CSS property specifies that font size should be chosen based on the height of lowercase letters rather than the height of capital letters.

This is useful since the legibility of fonts, especially at small sizes, is determined more by the size of lowercase letters than by the size of capital letters. This can cause problems when the first-choice font-family is unavailable and its replacement has a significantly different aspect ratio (the ratio of the size of lowercase letters to the size of the font).

To do this in a way that is compatible with browsers that do not support font-size-adjust, it is specified as a number that the font-size property is multiplied by. This means the value specified for the property should generally be the aspect ratio of the first choice font. For example, a style sheet that specifies

font-size: 14px;  
font-size-adjust: 0.5;

is really specifying that the lowercase letters of the font should be 7px high (0.5 × 14px).


Formal syntax: none | <number>
font-size-adjust: none
font-size-adjust: 3
font-size-adjust: 10.7

font-size-adjust: inherit


Choose the size of the font based only on the font-size property.

Choose the size of the font so that its lowercase letters (as determined by the x-height metric of the font) are the specified number times the font-size.

The number specified should generally be the aspect ratio (ratio of x-height to font size) of the first choice font-family. This will mean that the first choice font, when available, will appear the same size in browsers, whether or not they support font-size-adjust.


View Live Examples

p {
   font: 12px Verdana, "DejaVu Sans", sans-serif;
   font-size-adjust: 0.58;


Specification Status Comment
CSS Fonts Module Level 3 Candidate Recommendation  

The CSS property font-size-adjust was initially defined in CSS 2, but dropped in CSS 2.1. It has been newly defined in CSS 3.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support Not supported  1.0 (1.0)
Windows only
Not supported  Not supported  Not supported 
3.0 (1.9)
All platforms
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support ? 1.0 (1.9.2) ? ? ?

See also

Document Tags and Contributors

Last updated by: Sheppy,