HTML and CSS Reference
In-Depth Information
CSS Properties
The following is a reference to all CS properties. In the Value component of each, the pipe
character ( | ) indicates the word “or.” In the “Supported by” component, Firefox refers to
Firefox 1.5, Safari refers to Safari 2.0, Opera refers to Opera 9, and Internet Explorer refers
to Internet Explorer 6 (the current versions of these browsers at the time of this writing).
Typefaces, Text Color, Text Size, and Similar Properties
The following properties control the appearance of text on your page.
color
Indicates the text color. Note that the value of the color property is also applied for text
decorations (such as underlines) and as an initial value for border colors (but it's overridden
if a border color is explicitly specified).
Value: <rgb value> | <hexadecimal value> | <color name>
Initial value: Determined by user agent
Inherited: Yes
Applies to: All elements
Supported by: Firefox, Safari, Opera, Internet Explorer
font
A shorthand property for specifying all font properties as well as line height.
Value: font-style font-variant font-weight font-size/line-height font-family |
<system font keyword>
Initial value: See individual properties
Inherited: Yes
Applies to: All elements
Supported by: Firefox, Safari, Opera, Internet Explorer
Note line-height is optional. font-style , font-variant , and font-weight are optional and may
appear in any order.
font-family
Indicates the font family (typeface) to be used. The first listed font family (whether specific or
generic) found to be available to the user agent will be used.
Search WWH ::




Custom Search