![]() |
VOOZH | about |
The border-right-width property in CSS is used to define the width (thickness) of the right border of an element. It controls how thick or thin the right border appears.
Syntax:
border-right-width: medium | thin | thick | length | initial | inherit; Property Values:
| Value | Description |
|---|---|
| medium | The default value sets a medium-sized right border. |
| thin | Sets a thin right border. |
| thick | Sets a thick right border. |
| length | Sets the thickness of the right border using specific length units (e.g., px, em, rem). |
| initial | Sets the right border width to its default value as defined by the browser. |
The border-right-width: medium; property sets the right border of an element to a medium thickness by default.
Example: Here, we are using border-right-width: medium; property.
The border-right-width: thin; property sets the right border of an element to a thin thickness.
Example: Here, we are using border-right-width: thin; property.
The border-right-width: thick; property sets the right border of an element to a thick thickness.
Example: Here, we are using the border-right-width: thick; property.
The length property in CSS specifies the width of the border using specific measurements like pixels (px), centimeters (cm), or other length units, customizing the right-border width accordingly.
Example: Here, we are using border-right-width: length; property.
The initial property in CSS sets a CSS property to its default value, specifically initializing the right-border width to its default setting.
Example: Here, we are using border-right-width: initial; property.