New! My 44-page ebook "CSS in 44 minutes" is out! 😃
#border-color
Defines the color of the element's borders.
            default
          border-color: transparent;
        
Applies a transparent color to the borders. The borders will still take up the space defined by the border-width value.
          border-color: red;
        
You can use one of the 140+ color names.
          border-color: #05ffb0;
        
You can use hexadecimal color codes.
          border-color: rgb(50, 115, 220);
        
You can use rgb() color codes:
- the first value is for red
- the second value is for green
- the third value is for blue
Each of them can have a value between 0 and 255.
          border-color: rgba(50, 115, 220, 0.3);
        
You can use rgba() color codes:
- the first 3 values are for rgb
- the 4th value is for the alphachannel and defines the opacity of the color
The alpha value can go from zero 0 (transparent) to one 1 (opaque).
          border-color: hsl(14, 100%, 53%);
        
You can use hsl() color codes:
- the first value is for hueand can go from 0 to 359
- the second value is for saturationand go from 0% to 100%
- the third value is for luminosityand go from 0% to 100%
          border-color: hsla(14, 100%, 53%, 0.6);
        
You can use hsl()a color codes:
- the first 3 values are for hsl
- the 4th value is for the alphachannel and defines the opacity of the color
The alpha value can go from zero 0 (transparent) to one 1 (opaque).