Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

border-right-style property

Specifies the style of the right border of the object.

CSS Backgrounds and Borders Module Level 3, Section 4.2

 

Syntax

border-right-style: none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset | window-inset

Property values

none

Default. Border is not drawn, regardless of any border-width.

hidden
dotted

Border is a dotted line.

dashed

Border is a dashed line.

solid

Border is a solid line.

double

Border is a double line drawn on top of the background of the object. The sum of the two single lines and the space between equals the border-width value. The border width must be at least 3 pixels wide to draw a double border.

groove

3-D groove is drawn in colors based on the value.

ridge

3-D ridge is drawn in colors based on the value.

inset

3-D inset is drawn in colors based on the value.

outset

3-D outset is drawn in colors based on the value.

window-inset

CSS information

Applies ToAll elements
Mediavisual
Inheritedno
Initial Valuenone

Standards information

Remarks

A border-width greater than 0 must be set for the border-right-style attribute to render.

Examples

This example uses border-right-style to specify the right border style for a div element.


<body>
   <div id="right"></div> 
</body>

The CSS below specifies double as the default border style for div elements, then sets border-right-style to solid for the specific div element. The following image shows the result, a solid right border.

An element with the border-right-style property specified


div {
   width: 50px;
   height: 50px;
   border-width: 5px;
   border-style: double;
   border-color: #4169E1;			
}
#right {
   border-right-style: solid;
}

See also

CSSStyleDeclaration
currentStyle
defaults
runtimeStyle
style
border
border-top-style
border-bottom-style
border-left-style

 

 

Show:
© 2015 Microsoft