CSS2 Background Property Reference Guide
CSS2 Background Properties Reference Guide
This is a complete reference guide for web developers, listing all the background-related CSS properties defined in the Cascading Style Sheets Level 2 specification, a World Wide Web Consortium recommendation.
Click on any property to view its description with examples –
Number | Property & Description |
---|---|
1 | background A composite property of several properties, including the following −
background-attachment |
2 | background-color Determines whether the background image is fixed in the window or scrolls with the document. |
3 | background-color Sets the background color of an element. |
4 | background-image Sets the background image of the element. |
5 | background-position If specified, sets the initial position of the element’s background image. Typically provided as an x, y position pair; the default position is 0% 0%. |
6 | background-repeat Determines how a background image is tiled (repeated) on an element. |