css - background
Property Name
background
Version
CSS 1Description
The background shorthand property sets its all background properties in all in one line.You can set all background properties like background-color, background-clip, background-attachement, background-image, background-origin, background-repeat, background-size and background-position.
Default value
You can see this in individual background propertiesSupporting browsers
FirefoxChrome
Safari
Opera
Internet Explorer
Property values and Description
Value | Description |
---|---|
background-color | This property indicates the background color of the element. |
background-position | This property indicates the starting position of the background image. |
background-size | This property indicates the size of the background image.[CSS-3.0] |
background-repeat | This property indicates repeating of the background image. |
background-origin | This property indicates exact position area of the background image.[CSS-3.0] |
background-clip | This property indicates painting or visible area of the background image.[CSS-3.0] |
background-attachment | This property indicates whether the background image fixed or scrolled with rest of the page elements. |
background-image | This property indicates one or more background image may be applied to the page. |
Code view
background:#FC9 url(images/bacground-image.jpg) no-repeat 50px 100px fixed;
Code Description
background:color image repeat positionX positionY position
0 comments: