Border-left

The   property is used in CSS and some special HTML tags. It only makes a border on the left side of the selected text, leaving the other three sides borderless. A  is not necessary for this property to work, but if you want to specify a specific border for the other sides of an object, use ,  , or. If you want to specify a border for the whole area of text, then use. The  property can also be used to specify the border wrapping around the text.

You can use either,  ,  , or any number in pixels to specify the thickness of the border. Any color will work, either in HTML color codes or valid color names. You can also use  or   as the linetype of the border.

To apply this in an HTML document, use:

Border this text

That generates: Border this text

This is a border with the  thickness applied: Border this text

This is a border with the  thickness applied: Border this text

This is a border with the  linetype applied on a   thickness border: Border this text

To apply this in CSS, in the  element for example, use:

h1 { background-color:black; color:white; border-left:5px solid black; }