CSS3 font-size-adjust Property

Here is the brief description on how to use the CSS3 font-size-adjust property.

Explanation

Property :

font-size-adjust: number|none|initial|inherit;


Where,
number - Defines the aspect value to use
none - Default value. No font size adjustment
initial - Sets this property to its default value.
inherit - Inherits this property from its parent element.

Usage:


font-size-adjust: 0.5;

Definition:

The font-size-adjust property gives you better control of the font size when the first selected font is not available. When a font is not available, the browser uses the second specified font. This could result in a big change for the font size. To prevent this, use the font-size-adjust property.

Example 1 :
<div style='font-size-adjust: 0.58;font-family: 'times new roman';' >
This an example for font-size-adjust property.</div>

Result:
This an example for font-size-adjust property.


Example 2 :
<div style='font-size-adjust: 0.5;font-family: verdana;' >
This an example for font-size-adjust property.</div>

Result:
This an example for font-size-adjust property.



Ask Questions

Ask Question