fontSizeAdjust style property
Specifies or returns font aspect value (font size divided by x-height).
The fontSizeAdjust property is useful if you want to set the size of lowercase letters.
It specifies the factor by which the font size is multiplied.
Syntax:
You can find the related objects in the Supported by objects section below.
This property is read/write.
CSS page for this property: font-size-adjust |
Possible values:
The type of this property is string.
One of the following values:
Floating-point number, the font aspect value. | |||||||
Takes the value of this property from the computed style of the parent element. | |||||||
Font aspect value is not changed. |
Default: none.
Example HTML code 1:
This example illustrates the use of the font-size-adjust property:
|
||||
<head> <style> .adjust63 { font-size-adjust: 0.63; } .adjust126 { font-size-adjust: 1.26; } </style> </head> <body> <span class="adjust63">font-size-adjust: 0.63</span><br /> <span class="adjust126">font-size-adjust: 1.26</span> </body> |
||||
|
||||
Did you find this example helpful?
|
Example HTML code 2:
This example illustrates the use of the fontSizeAdjust property in JavaScript:
|
||||
<head> <script type="text/javascript"> function ChangeFont (selectTag) { // Returns the index of the selected option var whichSelected = selectTag.selectedIndex; // Returns the selected options values var selectState = selectTag.options[whichSelected].text; var fontTest = document.getElementById ("fontTest"); if ('fontSizeAdjust' in fontTest.style) { fontTest.style.fontSizeAdjust = selectState; } else { alert ("Your browser doesn't support this example!"); } } </script> </head> <body> <span id="fontTest" style="font-size-adjust: 0.63">Change font-size-adjust</span> <br /> <select onchange="ChangeFont (this);" size="9"> <option />0.1 <option />0.21 <option />0.32 <option />0.51 <option selected="selected" />0.63 <option />0.8 <option />1.12 <option />2.5 <option />4.8 </select> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by objects:
CSSStyleDeclaration, htmlElement.style
HTML elements:
a, abbr, acronym, address, b, bdo, big, blink, blockquote, body, button, caption, center, cite, code, col, colgroup, dd, del, dfn, dir, div, dl, dt, em, fieldset, font, form, h1, h2, h3, h4, h5, h6, html, i, input:button, input:file, input:password, input:reset, input:submit, input:text, ins, isindex, kbd, label, legend, li, marquee, menu, ol, optgroup, option, p, pre, s, samp, select, small, span, strike, strong, sub, sup, table, tbody, td, textarea, tfoot, th, thead, tr, tt, u, ul, var
Related pages:
color
font
fontFamily
fontSize
fontStyle
fontVariant
fontWeight
textAlign
textAlignLast
textAutospace
textDecoration
textIndent
textJustify
textKashidaSpace
textOverflow
textShadow
textTransform
textUnderlinePosition
font
fontFamily
fontSize
fontStyle
fontVariant
fontWeight
textAlign
textAlignLast
textAutospace
textDecoration
textIndent
textJustify
textKashidaSpace
textOverflow
textShadow
textTransform
textUnderlinePosition
External links:
User Contributed Comments