The border-right-width property
The border-right-width property specifies
a width of a right border. The value of the property
is any
size units,
except percentages, or the keywords thin
(2 pixels border), medium (4 pixels
border) or thick (6 pixels border). Default
value: medium.
Syntax
cssselector {
border-right-width: value;
}
Example
Let's set a right border to one pixel width:
html<div id="elem"></div>css#elem {
border-right-width: 1px;
border-right-style: solid;
border-right-color: black;
background: #f9f9f9;
width: 300px;
height: 100px;
}
Результат:
See also
-
the
border-right-styleproperty
that sets a style of a right border -
the
border-right-colorproperty
that sets a color of a right border -
the
border-rightproperty
that sets a border for a right side -
the
border-widthproperty
that sets a width of all sides of a border -
the
border-leftproperty
that sets a left border -
the
border-left-colorproperty
that sets a color of a left border -
the
border-left-widthproperty
that sets a width of a left border -
the
border-left-styleproperty
that sets a style of a left border