Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

CSS Examples: font-size-adjust

Examples

This is the Times font (10px) which is hard to read in small sizes

This is the Verdana font (10px) which does much better, since it is a sans-serif font.

Now we'll do an adjustment:

Here is the Verdana font at 10px - which is legible...

and the Times, adjusted to 12px so that it maintains the same aspect ratio as the Verdana.

Styles Used

p {
	font-size: 10px;
}
.times {
	font-family: Times, serif;
}
.verdana {
	font-family: Verdana, sans-serif;
}
h3 {
	font: 10px Verdana, sans-serif; 
	font-size-adjust: 0.58;
}
h3.adjtimes {
	font-family: Times, serif; 
}