CSS border right width is used to set the right border width of an HTML element.
Syntax
1 |
border-right-width: specify color here; |
1 2 3 4 5 6 7 8 9 10 |
<style> .div-border{ border-right-width:2px; border-right-style:solid; border-right-color:#000; } </style> <div class="div-border"> <p>This is a paragraph of border right width.</p> </div> |
Output
This is a paragraph of border right width.
CSS border right width values list
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. |
3 | inherit | Used to define the computed value of property on the elements parent. |