Set the width of the left border.
Syntax border-left-width: length | thin, medium, thick |inherit ;
length - A measurement in px, pt or em alternativel
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.
Examples:
h1 { border-left-width: 10px; }
.emw3class { border-left-width: thick; }
#emw3id { border-left-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
Related:
border-left-width - MDN Web Docs.
border-bottom-width - Width of the bottom border.
border-right-width - Width of the right border.
border-top-width - Width of the top border.
border-left-style - Style of the left border.
border-left-color - Color of the left border.
color - Text color.