Padding Borders and Margin

border-color

Specifies the color to be used in all four borders. To set different colors in each of the edges see the similar properties border-top-color, border-bottom-color, border-right-color and border-left-color.

Example

border-color: #333;

Browser support

IE5.5+, FF1+, SA1.3+, OP9.2+

Values

Color keyword One of the 17 recognized color keywords; aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, orange, purple, red, silver, teal, white and yellow.
Hex color Three two-character numbers in the hexadecimal system(base 16)
RGB decimal Use RGB values from 0 to 255; rgb(255, 0, 333).
RGB percentage Specify a color using percentage values: rgb(100%, 0%, 33%).

Related properties

Can be used with..

Search the Soup!