border-right

Defines the properties for the right border for the element.

Platform Support

IENetscapeMozillaOperaSafari
4.0+6.0+1.0+4.0+1.0+

Usage

[color] [style] [width]

Values

*Specify a border-right value not on this list.
inheritInherit the value from the parent element.
#ffffffborder-right-color: Border color placeholder. e.g. #ffffff = white
noneborder-right-style: No border.
dottedborder-right-style: Dotted line.
dashedborder-right-style: Dashed line.
solidborder-right-style: Solid line.
doubleborder-right-style: Double line.
grooveborder-right-style: Grooved line.
ridgeborder-right-style: Ridged line.
insetborder-right-style: Inset line.
outsetborder-right-style: Outset line.
hiddenborder-right-style: Hidden border.
thinborder-right-width: Thin border.
mediumborder-right-width: Medium border.
thickborder-right-width: Thick border.

Example

To specify a thick, red, dashed right border, use the following syntax: .myborderrightclass {border-right: thick red dashed;}.

Remarks

Use the border-right property as a shortcut to typing out all of the individual border-right properties separately. You can specify any valid value for a border-right- property as part of border-right.

Availability

W3C CSS2

Related

text_css aptana_docs