Home | CSS Tutorials | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |
Syntax: | font: <value> |
---|---|
Possible Values: | [ <font-style> || <font-variant> || <font-weight> ]? <font-size> [ / <line-height> ]? <font-family> |
Initial Value: | Not defined |
Applies to: | All elements |
Inherited: | Yes |
The font property may be used as a shorthand for the various font properties, as well as the line height. For example,
P { font: italic bold 12pt/14pt Times, serif }
specifies paragraphs with a bold and italic Times or serif font with a size of 12 points and a line height of 14 points.
Maintained by John Pozadzides and Liam Quinn
Copyright © 1997 John Pozadzides and Liam Quinn. All rights reserved.
Home | CSS Tutorials | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |