Set the width of the right border.

      border-right-width: length | thin,  medium,  thick |inherit ;

length - A measurement in px, pt or em alternatively
thin - 1px
medium - 3px
thick - 5px
inherit - inherit the width from the parent element.

The border-style property must be set for the border-width or border-color properties to have any effect.

h1 { border-right-width: 10px; }
.emw3class { border-right-width: thick; }

#emw3id { border-right-width: 2em; }

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, IE prior to 8.0 renders thin, medium, and thick at 2px, 4px, and 6px.

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


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

Copyright © 2013-2022
Some rights reserved