Color and Backgrounds
These properties allow the author to control the foreground and background color of elements and the placement of background images.
In this Section
- background-color
sets the background’s color - background-image
sets the background image for an element - background-repeat
sets the tiling (and tiling direction) of a background-image - background-position
sets the position of a background image - background-attachment
defines whether the background image scrolls with the containing block or remains fixed to the viewport - background
sets the background’s appearance - color
defines the foreground color for text content
User-contributed notes
- ID:
- #1
- Date:
- Tue, 20 Oct 2009 14:13:03 GMT
- Status:
- This note has not yet been confirmed for accuracy and relevance.
Please update to include CSS 3 background-* properties, such background-clip, background-size, and setting multiple image values for the background-image per http://www.w3.org/TR/css3-background/. I'm especially interested in vendor support for some of these properties.
Add a note
To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.




