border-color (CSS2)

Specifies the color for the borders for an element. Specify either a color name or RGB color code.

Syntax

color | transparent

Examples having uses of: 'border-color'

0 votes
1k views

CSS Color

Colors can be applied to any HTML element. Like div, text, body ,paragraph etc.
0 votes
1k views

CSS Border

This will make a red dashed border around all HTML primary headers (H1)
1 votes
1k views

CSS Border

Using CSS border we can set style, color, width of the borders of an HTML element.
0 votes
1k views

CSS Border Color

This example two lines of text have been bordered using red and green colouring. They have a "border-style" of "solid" to ensure the borders display correctly. Without setting the style, the color change will not work.