CSS border right style is used to set the style of right border of an HTML element.
Syntax
1 |
border-right-style: specify style here; |
1 2 3 4 5 6 7 8 9 10 11 12 |
<style> .div-border{ border-right-width:2px; border-right-style:solid; border-right-color:#000; } </style> <div class="div-border"> <p>This is the paragraph to show style given to the right border of an HTML element.</p> </div> </body> </html> |
Output
This is the paragraph to show style given to the right border of an HTML element.
CSS border right style values list
Sr. No. | value | Description |
---|---|---|
1 | border-style | Used to give style for border. The value for this can be from none, hidden, dotted, dashed, solid, double, groove, ridge, inset, outset. Check CSS border style 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. |