fontSize property
[This documentation is preliminary and is subject to change.]
Sets or retrieves a value that indicates the font size used for text in the object.
Syntax
Integer value = object.put_fontSize(Variant v);Integer value = object.get_fontSize(Variant* sSize);
Property values
Type: VARIANT
relative-size (relative-size)
Set of keywords that are interpreted as relative to the font size of the parent object.
| Value | Meaning |
|---|---|
| larger | |
| smaller |
length (length)
Floating-point number, followed by an absolute units designator (cm, mm, in, pt, or pc) or a relative units designator (em, ex, or px). For more information about the supported length units, see the CSS Values and Units Reference.
percentage (percentage)
Integer, followed by a percent (%). The value is a percentage of the parent object's font size. In Internet Explorer 3.0, the value is calculated as a percentage of the default font size.
String format
<absolute-size> | <relative-size> | <length> | <percentage>
CSS information
| Applies To | All elements |
| Media | visual |
| Inherited | 1 |
| Initial Value | medium |
Remarks
Negative values are not allowed. Font sizes using the proportional "em" measure are based on the font size of the parent object.
Requirements
Minimum supported client |
Windows XP |
Minimum supported server |
Windows Server 2003 |
Header |
|
DLL |
Mshtml.dll |
See also
Reference
Conceptual
CSS Values and Units Reference
Build date: 1/23/2012