CSS - border-right-width
Sets the width of the right border of an element.
Possible Values
length − Any length unit. Length units for this property may not be negative.
thin − A border which is thinner than a border set to medium.
medium − A border which is thicker than a border set to thin, and thinner than a border set to thick.
thick − A border which is thicker than a border set to medium.
Applies to
All the HTML elements.
DOM Syntax
object.style.borderRightWidth = "2px";
Example
Following example demonstrates border-right-width property −
<html>
<head>
<style>
h2{
border-style: dotted;
border-right-width: 5px;
}
p {border-style: solid;
border-right-width: thin;
}
</style>
</head>
<body>
<h2>border-right-width (single-side)</h2>
<p>Different border widths on all sides. Check the width at the right of the element.</p>
</body>
</html>
Advertisements