Font Size

Category:CSS Properties

Font Size

The font-size property specifies the size of a font.

Examples

Changing the Font Size

Setting the font size of a <p> element to 12px.

p {
  font-size: 12px; 
}

Syntax

font-size: value;

Tips

  • The default font size is medium (16px).

Additional Information

For more information, see http://www.w3schools.com/cssref/pr_font_font-size.asp

Found a bug in the documentation? Let us know at documentation@code.org