Name
font-size
Synopsis
Specifies the size of the font for a text element.
Values:
xx-small | x-small | small | medium | large | x-large | xx-large | smaller | larger | <length> | <percentage> | inherit
Initial value:
medium
Applies to:
All elements.
Inherited:
Yes.
Percentages:
Refer to parent element’s font size.
Computed value:
Absolute length.
Get Web Design in a Nutshell, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.