CSS border-right property
CSS border-right property
Description
Sets the right border of an element; value can be one or more of a color, a border-right-width value, and a border-style value.
Possible values
Possible values are one or more of a color, a border-width value, and a border-style value.
Applicable scope
Applies to all HTML elements.
DOM syntax
object.style.borderRight = "2px solid red";
Example
The border-right property allows you to specify the color, style, and width of the top line in one property.
The following is an example showing how to combine these three properties into a single property.
<p style = "border-right:4px solid red;">
This example is showing shorthand property for border-right.
</p>
This will produce the following results: