1. Home
  2. Computing & Technology
  3. Web Design / HTML

Using the CSS font Shorthand Property

By Jennifer Kyrnin, About.com

When styling your text, you can use properties such as font-family and font-weight or you can use the shorthand property font.

When you use the shorthand property, you should remember that it requires both the size and the family - in that order. (It does not require the weight.) For example:

p { font: 100% Arial; }

More Web Design / HTML Quick Tips

Explore Web Design / HTML

More from About.com

  1. Home
  2. Computing & Technology
  3. Web Design / HTML

©2008 About.com, a part of The New York Times Company.

All rights reserved.