border-right: border-width border-style border-color;
|
border-right-width
|
border-width sets the width of the right border as a positive numeric measurement or using a named value of thin, medium, or thick, and its default value is medium.
|
border-right-style
|
border-style, is used to set the style of the right border and is set to a value of dashed, dotted, double, groove, hidden, inset, none, outset, ridge, or solid, and its default value is "none".
|
border-right-color
|
border-color is used to set the color of the right border using a CSS color value, and its default value is color of the text.
|
<!DOCTYPE html>
<html> <style> .one{ border: 4px solid; border-right: thick dashed green; } .two{ border: 4px solid; border-right: thick dotted green; } .three{ border: 4px solid; border-right: thick double green; } </style> <body> <h1 class="one">This is a heading</h1> <h1 class="two">This is a heading</h1> <h1 class="three">This is a heading</h1> </body> </html> |