O'Reilly logo

HTML, XHTML, and CSS Bible, Fourth Edition by Steven M. Schafer

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 Properties Quick Reference

IN THIS APPENDIX

Property listings

This appendix follows CSS 2.1, which is a specification intended to represent the most commonly supported properties in modern browsers.

Note that aural stylesheet properties are not covered in this appendix because adequate coverage of their use and capabilities goes well beyond a quick reference. For information on aural properties and their use, visit The Alliance for Technology Access Web site at www.ataccess.org/.

Unfortunately, solid support for many of the CSS properties is spotty. Testing on a wide variety of Web browsers is recommended. Also, several Web sites provide extensive information on CSS support across the popular browsers.

Note

For an overview of CSS selectors, see Appendix D.

Property Listings

In each table that follows, words under Supported Values that are capitalized are placeholders for either a set of possible values or values drawn from a related property. Examples of placeholders include the following:

  • Length — Number followed by a unit of measurement, such as "px" for pixel

  • Percentage — Number followed by a percent sign

  • Integer — Whole number

Inherited refers to whether a given property will be drawn from the element's parents if it is not explicitly provided.

Background

Listings of the background properties follow.

background-image

Place an image behind an element (typically the body of a document).

table { background-image: url("/images/draft.gif"); }

Supported values

url(), none, inherit

Default ...

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