Description

Sets the color of one to four of an elements borders.
One value is given to all borders.
Two values, top and bottom take the first value left and right the second.
Three values, top takes the first , right and left the second and bottom the last.
Four values are given clockwise from top (top, right, bottom, left)

See also:

  • Border
  • Border-style
  • Border-width
  • Border-radius
  • Live Example
    Play with the code in the textarea below.

    Values
    color keyword of numerical color value
    Default value
    black
    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