CSS Background and Borders
CSS Background and Borders is a module of CSS that defines how background and borders of elements are described. Borders can be lines or images, boxes can have one or multiple backgrounds, have rounded corners, and shadows.
Reference
CSS Properties
background
background-attachment
background-clip
background-color
background-image
background-origin
background-position
background-repeat
background-size
box-shadow
border
border-bottom
border-bottom-color
border-bottom-left-radius
border-bottom-right-radius
border-bottom-style
border-bottom-width
border-collapse
border-color
border-image
border-image-outset
border-image-repeat
border-image-slice
border-image-source
(en-US)border-image-width
(en-US)border-left
border-left-color
border-left-style
(en-US)border-left-width
(en-US)border-radius
border-right
border-right-color
(en-US)border-right-style
(en-US)border-right-width
(en-US)border-style
border-top
border-top-color
border-top-left-radius
border-top-right-radius
border-top-style
(en-US)border-top-width
(en-US)border-width
Guides
- Using CSS multiple backgrounds
- Explains how to set backgrounds on elements and how they will interact with it.
- Scaling background images
- Describes how to change the appearance of the background images, by stretching them or repeating them, to cover the whole background of the element, or not.
Specifications
Specification | Status | Comment |
---|---|---|
CSS Backgrounds and Borders Module Level 3 | Candidate Recommendation | |
CSS Level 2 (Revision 1) | Recommendation | |
CSS Level 1 | Recommendation |
Browser compatibility
We're converting our compatibility data into a machine-readable JSON format.
This compatibility table still uses the old format,
because we haven't yet converted the data it contains.
Find out how you can help! (en-US)
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | 1.0 | 1.0 (1.7 o anterior) | 4.0 | 3.5 | 1.0 (85) |
Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | (Yes) | 1.0 (1.9.2) | (Yes) | (Yes) | 1.0 |