CSS border-right-style Property Tutorial

In this section, we will learn what the border-right-style property is and how to use it in CSS.

Click here to run the example of border-right-style property.

CSS border-right-style Property Definition and Usage

The border-right-style is a CSS property we use to style the right border of an element.

CSS border-right-style Property Syntax

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

CSS border-right-style Property Value

These are the values that we can use for the `border-right-style` property:

  • none (The default value);
  • hidden
  • dotted
  • dashed
  • solid
  • double
  • groove
  • ridge
  • inset
  • outset

Also, the two global values “initial” and “inherit” could be used for this property.

Example: border-right-style property in CSS

See the Pen border-right-style property in CSS by Enjoy Tutorials (@enjoytutorials) on CodePen.

How Does CSS border-right-style Property Work?

In this example, we’ve used the border-right-style to change the style of the right border of the element and set it to double style.

Leave a Reply