/

HTML / CSS / JavaScript Tutorial

CSS Property: font-size-adjust

[this page | pdf | back links]

The CSS (CSS3) font-size-adjust property gives better control of the font size than is provided by the font-size property alone, when the first font selected in the font-family property is not available.  All fonts have an “aspect value” which is the size-difference between the lowercase “x” and the uppercase “X”. If the browser is told this value then it can figure out what font-size to use when displaying text from the entry in the font-family property that is actually used.

 

Valid property values (other than inherit and initial) are:

 

Value

Description

number

A value indicating the aspect value to use

none

(default value). No adjustment applied to font size

 

Default Value:

none

JavaScript syntax:

e.g. object.style.fontSizeAdjust="0.58"

Inherited:

Yes

Animatable:

Yes

 


NAVIGATION LINKS
Contents | Prev | Next | CSS Properties


Desktop view | Switch to Mobile