Appendix B. CSS 2.1 Properties and Proprietary Extensions

This appendix contains several tables. Table B-1 lists CSS properties from W3C’s CSS 2.1 specification (see http://www.w3.org/TR/CSS21). It lists the property’s values, initial value, what the property applies to, whether the values in the property are inherited, whether the property accepts percentages, and the property’s media group.

Table B-2 lists Microsoft’s proprietary extensions to the specifications. These properties will not validate if you run them through a validator and they will appear successfully only in a browser built by Microsoft. Your mileage will vary with the use of these extensions.

As of this writing, Mozilla’s proprietary extensions that are available in Mozilla, Firefox, and Netscape Navigator 6 and later browsers are not fully documented. Table B-3 lists some extensions that are documented from Mozilla’s developers’ website. Check the site for a complete list of the extensions, at http://developer.mozilla.org/en/docs/CSS_Reference:Mozilla_Extensions.

Table B-1. CSS 2.1 properties
NameValuesInitial valueApplies to (Default: all) Inherited? Percentages (Default: N/A) Media groups

'background-attachment'

scroll | fixed | inherit

scroll

No

Visual

'background-color'

<color> | transparent | inherit

transparent

No

Visual

'background-image'

<uri> | none | inherit

none

No

Visual

'background-position'

[ [ <percentage> | <length> | left | center | right ] [ <percentage> | <length> | top | center | bottom ]? ] | [ [ left | center ...

Get CSS Cookbook, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.