border-color

color of element's border

Example

1

Description

color of element's border

Can set up to all 4 border colors at once, depending on the number of values given. 4 values: top, right, bottom, left 3 values: top, left and right, bottom 2 values: top and bottom, left and right 1 value: all four borders

Values

Value Description
Values
#RRGGBBa hexadecimal color value
a color namea named color preset, such as black, white, red, etc.
rgb(r,g,b)a color with integer or percentage rgb values
transparentinherits background color of parent element