HomeReferencesCSS Properties

CSS Property: font-size

Specifies the size of a font in a box.

HTML Dog, The Book HTML Dog book cover

HTML Dog is hosted by Titan Internet

Possible Values

  • inherit
  • [percentage]
  • [length]
  • larger
  • smaller
  • xx-small
  • x-small
  • small
  • medium (default)
  • large
  • x-large
  • xx-large

Example


body {
	font-family: arial, Helvetica, sans-serif;
	font-size: 80%;
}

h1 { font-size: 1.5em; }