Font size

noun

say it: “FONT SIZE” /fɑnt saɪz/

The CSS property that sets how big text is, in units such as rem, em, px or a percentage.

What does font-size do?

font-size sets how big the text is.

.fine-print { font-size: 12px; }
h1 { font-size: 2.5rem; }

In a sentence

  • “I raised the font size of the menu prices to 1.25rem so people could read them from across the counter.”

Level: Novice · More CSS terms at this level

Updated