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 abackground-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
Previous: caption-side
Next: background-color
User-contributed notes
There are no comments yet.
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.
