Set the color of the right border.

      border-right-color: color | transparent | inherit ;

Color - A color name or hex code
transparent - Make the element see-through
inherit - Inherit from a parent element.

The border-style property must be set for the border-width or border-color properties to have any effect.
inherit - Inherit from the parent element.

h1 { border-right-color: #ff0000; }
.emw3class { border-right-color: #93622f; }

#emw3id { border-right-color: #2b5e55; }

Try it:

This is a sample of text with a CSS border. Each of the 4 borders can be styled separately with CSS.

(CSS 1) Browser Support: All major browsers.

“Growing up, I never imagined a girl from a border town could one day become a governor” ~ Susana Martinez


border-right-color - MDN Web Docs.
border-bottom-color - Color of the bottom border.
border-left-color - Color of the left border.
border-top-color - Color of the top border.
border-right-width - Width of the right border.
border-right-style - Style of the right border.
border-style - Style of the four borders.
color - Text color.

Copyright © 2013-2022
Some rights reserved