- Description
Shorthand attribute that sets the color, style and width of an elements four borders.
Any attributes left out take on the default values.
You should always specify width and style values as some older browsers will not display the border without them.See also:
- Border-color
- Border-style
- Border-width
- Border-radius
- Live Example
- Play with the code in the textarea below.
- Values
- border-width border-style border-color
- Default value
- none
- Introduced in CSS version
- 1
- Applies to elements
- All
- Inherited
- No
- Browser Support
Browsers IE Firefox Safari Opera Chrome Versions 5 1 1 6 0.2
Belongs to:
See the full list CSS properties and browser support: CSS Properties