CSS Property: font-size
Font size. Size of a font. Font? The size of it.
Possible Values
Value | Note | Example |
---|---|---|
[length] | When em or ex units are used, font size is calculated in relation to the containing box’s font size.Should not be a negative value. | 12px |
[percentage] | Calculated as a percentage of the containing box’s font size. Should not be a negative value. | 150% |
larger | Larger than the inherited font size. | |
smaller | Smaller than the inherited font size. | |
xx-small | Extra EXTRA small. | |
x-small | Extra small. | |
small | Smaller than medium . | |
medium | The standard reference middle value. | |
large | Larger than medium . | |
x-large | Extra large. | |
xx-large | Extra EXTRA large. | |
inherit | ||
initial | ||
unset |
Example
p { font-size: 16px; }