CSS Font-size Property

Posted The: 24/03/2008 At: 0:58

Last Edited: 30/04/2009 At: 20:55

The font-size property sets how large the font should be, the size of the text.

Possible Values

Read Units of Measurement to understand the values. It is recommended to use EM or Percentages when setting the font-size. Example:

p {
  /* Using Ems */
  font-size: 1em;
  /* Using Percentages */
  font-size: 100%;
  /* Using Pixels */
  font-size: 18px;
}

Note: Generally you can use any unit of mesurment, just keep in mind, that some units are better suited for print-media.

Inherited? - YES!

Comments: [0]

© Brugbart Webdesign