Property font-size
Specifies the font size of text
Syntax
/*
/*
/*
/*
/* math value */ font-size: math;
/* Global values */ font-size: inherit; font-size: initial; font-size: revert; font-size: revert-layer; font-size: unset;
Values
xx-small, x-small, small, medium, large, x-large, xx-large, xxx-large
Absolute-size keywords, based on the user’s default font size (which is medium).
larger, smaller
Relative-size keywords. The font will be larger or smaller relative to the parent element’s font size, roughly by the ratio used to separate the absolute-size keywords above.
math
Scaling rules are applied when determining the computed value of the font-size property for math elements relative to the font-size of the containing parent. See the math-depth property for more information.
Example
.small { font-size: xx-small; } .larger { font-size: larger; } .point { font-size: 24pt; } .percent { font-size: 200%; }