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.

Example

div{ border: 1px solid #666; }

Values
border-width border-style border-color
Default value
none
Introduced in CSS version
1
Applies to elements
All
Inherited
No
Browser Support
BrowsersIE ieFirefox firefoxSafari safariOpera operaChrome chrome
Versions51160.2
Belongs to:

See the full list CSS properties and browser support: CSS Properties