O'Reilly logo

Professional CSS: Cascading Style Sheets for Web Design, Second Edition by Mark Trammell, Dunstan Orchard, Ethan Marcotte, Cindy Li, Todd Dominey, Christopher Schmitt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix C. CSS 2.1 Properties

When marking up content with HTML, you must be aware of the elements that are at your disposal. The same goes for designing with CSS — you must be fully aware of the properties and their values to effectively design for the Web.

In this vein, the following table lists all the CSS 2.1 properties that are at your disposal. In the far left column is the name of the CSS property. Next are the values associated with that property and then the initial value. The next column states what HTML element that CSS property applies to. The Inherited column states whether the property can be inherited by other elements. The far right column indicates the applicable media group.

The listing of CSS 2.1 properties (www.w3.org/TR/CSS21/propidx.html) is copyright © February 25, 2004 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University). All Rights Reserved. www.w3.org/Consortium/Legal/2002/copyright-documents-20021231

Name

Values

Initial Value

Applies to (Default: All)

Inherited

Media Groups

'azimuth'

<angle> | [[ left-side | far-left | left | center-left | center | center-right | right | far-right | right-side ] || behind ] | leftwards | rightwards | inherit

center

All

Yes

Aural

'background-attachment'

scroll | fixed | inherit

scroll

All

No

Visual

'background-color'

<color> | transparent | inherit

transparent

All

No

Visual

'background-image'

<uri> | none | inherit

none

All

No

Visual

'background-position'

[ [ <percentage> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required