The CSS reference

"border-right-style" - css property (v. css 2)

  • Sets the style of the right border
  • To set all border equal style use 'border-style' .
  • Initial value: none
  • The property is not inherited
  • HTML usage: all elements
  • Can be given as 'inherit' or a style as specified below.
  • Browsers that support the border-right-style - property :
    Internet Explorer Mozilla Firefox Opera Google Chrome Apple Safari

Possible border styles values:

border style Comments CSS
none No border is drawn (regardless of the 'border-width' value). 1
dotted The border is a dotted line drawn on top of the background of the element. 1
dashed The border is a dashed line drawn on top of the background of the element. 1
solid The border is a solid line. 1
double The border is a double line drawn on top of the background of the element. The sum of the two single lines and the space between equals the 'border-width' value. 1
groove A 3D groove is drawn in colors based on the <color> value. 1
ridge A 3D ridge is drawn in colors based on the <color> value. 1
inset A 3D inset is drawn in colors based on the <color> value. 1
outset A 3D outset is drawn in colors based on the <color> value. 1
inherit Will inherit the value from parent specification. This property value is new with CSS 2. 2

Property "border-right-style" example:

<!DOCTYPE HTML >
<html  >
  <head>
    <title>Test</title>
    <style type="text/css">
      .presentation {
        border-left-color: #4DFFFF;
        border-left-style:  double;
        border-left-width: 22px;
        border-right-color: #FF4D4D;
        border-right-style:  double;
        border-right-width: 22px;
        width: 400px;
        }
     </style>
  </head>
  <body>
    <div class='presentation'  >The Inherit value is inherited from
          the parent specification. This property value is new
          with CSS 2.
    </div>
  </body>
</html>

Javascript access:

// To SET values ([o] is the target object)
[o].style.borderRightStyle="border-right-style value"
// To GET values you must first get the computed style object
// To get that object in IE or Opera:
var cStyle=[o].currentStyle;
// To get that object in Firefox, Chrome or Safari (w3c-type):
var cStyle=window.getComputedStyle([o],null)
// To GET the property value:;
var value=cStyle.borderRightStyle;
© 2010 by Finnesand Data. All rights reserved.
This site aims to provide FREE programming training and technics.
Finnesand Data as site owner gives no warranty for the correctness in the pages or source codes.
The risk of using this web-site pages or any program codes from this website is entirely at the individual user.