Contents Index Topic Contents | ||
Previous Topic: float Next Topic: @font-face |
font
Description
Defines the separate font attributes (font-style, font-variant, font-weight, font-size, line-height, and font-family).
Syntax
{ font: [ font-style || font-variant || font-weight ] font-size [ line-height ] font-family}
Remarks
Values that are not present are set to their default values. Font-size and font-family are required.
This attribute is inherited.
Example
The following example sets the font-family to Comic Sans MS and the font-size to 24 point for all SPAN elements within the document.
SPAN {font: 24 'Comic Sans MS'}
Applies To
A, ADDRESS, APPLET, B, BIG, BLOCKQUOTE, BODY, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, DD, DFN, DIR, DIV, DL, DT, EM, FIELDSET, FORM, H1, H2, H3, H4, H5, H6, HTML, I, INPUT, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, OL, P, PLAINTEXT, PRE, S, SAMP, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP, INPUT type=button, INPUT type=file, INPUT type=reset, INPUT type=submit, INPUT type=text
Scripting Property
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.