border-right-style - HTML CSS CSS Property

HTML CSS examples for CSS Property:border-right-style

Description

The border-right-style CSS property sets the style of an element's right border.

The following table summarizes the border-right-style Property.

Item Value
Default value: none
Applies to:All elements
Inherited: No
Animatable: No.

Syntax

The syntax of the property is as follows:


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

Property Values

The following table describes the values of this property.

Value Description
noneNo border will be displayed.
hidden Same as 'none'
dotted a series of dots.
dashed a series of short line segments i.e. dashes.
solid a single solid line.
double a two parallel solid lines.
groove Looks like carved into the canvas.
ridge opposite effect of 'groove'.
inset Looks like embedded in the canvas.
outset opposite effect of 'inset'.
initial Sets this property to its default value.
inherit takes the computed value of its parent element border-bottom-style property.

The example below shows the border-right-style property.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html lang="en">
 <head>
  <title>Example of CSS border-right-style property</title>
  <style type="text/css">
    p {<!--from   ww  w  .  jav  a 2  s . c  om-->
        border-right-width: 3px;
    }
    p.none {
        border-right-style: none;
    }
    p.dotted {
        border-right-style: dotted;
    }
    p.dashed {
        border-right-style: dashed;
    }
    p.solid {
        border-right-style: solid;
    }
    p.double {
        border-right-style: double;
    }
    p.groove {
        border-right-style: groove;
    }
    p.ridge {
        border-right-style: ridge;
    }
    p.inset {
        border-right-style: inset;
    }
    p.outset {
        border-right-style: outset;
    }
    </style>
 </head>
 <body>
  <h1>Various border style.</h1>
  <p class="none">No right border.</p>
  <p class="dotted">A dotted right border.</p>
  <p class="dashed">A dashed right border.</p>
  <p class="solid">A solid right border.</p>
  <p class="double">A double right border.</p>
  <p class="groove">A groove right border.</p>
  <p class="ridge">A ridge right border.</p>
  <p class="inset">An inset right border.</p>
  <p class="outset">An outset right border.</p>
 </body>
</html>

Related Tutorials