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
    BrowsersIEFirefoxSafariOperaChrome
    Versions51160.2
    Belongs to:

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