The border-right property
The border-right property specifies a color,
type, and width for a right border. It is a shorthand
property for
border-right-width,
border-right-style
and border-right-color.
Syntax
selector {
border-right: width type color;
}
The order of the properties does not matter.
Example
Let's give the element a black right border
with 2px width:
<div id="elem"></div>
#elem {
border-right: 2px solid black;
background: #f9f9f9;
width: 300px;
height: 100px;
}
:
See also
-
the
border-leftproperty
that specifies a left border -
the
border-topproperty
that specifies a top border -
the
border-bottomproperty
that specifies a bottom border -
the
border-right-colorproperty
that sets a color of a right border -
the
border-right-widthproperty
that sets a width of a right border