CSS border left width is used to set the left border width for html element. The border left for an html element can be display using three properties combination. These three properties are CSS border-left-width, CSS border-left-style and CSS border-left-color.

The syntax for CSS border-left-width is:

border-left-width: specify color here;

For Example:




CSS border-left-width syntax



This is the HTML paragraph inside the div for background size text. This div used to show the border left. This border has given here to display border.

Output

This is the HTML paragraph inside the div for background size text. This div used to show the border left. This border has given here to display border.

CSS border left width values list

The values and description of this property is used for CSS border left width to specify the border.

Sr. No. value Description
1 border-width Used to give width of border. The value for this can be in pixel format or percentage format. Check CSS border-width for more detail.
2 initial Used to define as the property initial value.
2 inherit Used to define the computed value of property on the elements parent.

CSS border left widthr dotted

In this example we will use to show dotted border-left.

border-left: border-width border-style border-color;

For Example:




CSS border-left-color syntax



This is the HTML paragraph inside the div for background size text. This div used to show the border left. This border has given here to display border.

Output

This is the HTML paragraph inside the div for background size text. This div used to show the border left. This border has given here to display border.

Leave a Reply

Your email address will not be published. Required fields are marked *