Border Right
Border Right
The border-right
property specifies the width, line style, and color of the right border of an element. It is a shorthand property for setting in one declaration the width, the style, and the color of an element's right border.
Examples
Border Right Property
Setting the style of the right border of <h1>
for different elements.
h1 {
border-right: 5px solid red;
}
Syntax
border-right: value;
Tips
- If
border-style
is not provided, the default is no border. - If no
border-color
is chosen, the border color will match the current text color. - If
border-width
is not provided, the default ismedium
.
Additional Information
For more information, see http://www.w3schools.com/cssref/pr_border-right.asp.
Found a bug in the documentation? Let us know at support@code.org.