The "font-size" CSS Property

This property specifies the size of the font (more specifically the desired height of glyphs from the font).

Values for "font-size"
CSS LevelValue
CSS 2.1an absolute size, a relative size, a length, or a percentage
CSS3an absolute size, a relative size, a length, or a percentage

Syntax Notes for "font-size"

  • Absolute sizes include: xx-small, x-small, small, medium, large, x-large, and xx-large
  • Relative sizes include: larger and smaller

Notes

  • Use of percentage values, or values in 'em's, leads to more robust and cascadable style sheets.

Recommended Links

Accessibility Information & Tips

Search Engine Links (for more information)

Help us improve this page: Suggest a link or noteReport a problem