CSS borderrightstyle Property (original) (raw)

CSS border-right-style Property

Last Updated : 11 May, 2026

The border-right-style property in CSS is used to specify the style of the right border of an element. It controls how the right border appears, such as solid, dotted, or dashed.

Syntax:

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

**Default Value: none

**Property Values:

Example: Here, we are using the border-right-style: none property.

html `

CSS border-right-style property
<!-- Internal CSS Style Sheet -->
<style>
    h1 {
        color: green;
        text-align: center;
        border: 5px solid black;

        /* CSS Property for border-right-style */
        border-right-style: none;
    }
</style>

GeeksForGeeks

`

Output:

CSS | Property | border-right-style-none

Example: Here, we are using border-right-style: hidden property.

html `

CSS border-right-style property
<!-- Internal CSS Style Sheet -->
<style>
    h1 {
        color: green;
        text-align: center;
        border: 5px solid black;

        /* CSS Property for border-right-style */
        border-right-style: hidden;
    }
</style>

GeeksForGeeks

`

Output:

CSS | Property | border-right-style-hidden

Example: Here, we are using border-right-style: dotted; property.

html `

CSS border-right-style property
<!-- Internal CSS Style Sheet -->
<style>
    h1 {
        color: green;
        text-align: center;
        border: 5px solid black;

        /* CSS Property for border-right-style */
        border-right-style: dotted;
    }
</style>

GeeksForGeeks

`

Output:

CSS | Property | border-right-style-dotted

Example: Here, we are using border-right-style: dashed property.

html `

CSS border-right-style property
<!-- Internal CSS Style Sheet -->
<style>
    h1 {
        color: green;
        text-align: center;
        border: 5px solid black;

        /* CSS Property for border-right-style */
        border-right-style: dashed;
    }
</style>

GeeksForGeeks

`

Output:

CSS | Property | border-right-style-dashed

Example: Here, we are using border-right-style: solid property.

html `

CSS border-right-style property
<!-- Internal CSS Style Sheet -->
<style>
    h1 {
        color: green;
        text-align: center;
        border: 5px solid black;

        /* CSS Property for border-right-style */
        border-right-style: solid;
    }
</style>

GeeksForGeeks

`

Output:

CSS | Property | border-right-style-solid

Example: Here, we are using border-right-style: double property.

html `

CSS border-right-style property
<!-- Internal CSS Style Sheet -->
<style>
    h1 {
        color: green;
        text-align: center;
        border: 5px solid black;

        /* CSS Property for border-right-style */
        border-right-style: double;
    }
</style>

GeeksForGeeks

`

Output:

CSS | Property | border-right-style-double

Example: Here, we are using border-right-style: groove; property.

html `

CSS border-right-style property
<!-- Internal CSS Style Sheet -->
<style>
    h1 {
        border: 10px;
        border-style: solid;

        /* CSS Property for border-right-style */
        border-right-style: groove;
    }
</style>

GeeksForGeeks

`

Output:

CSS | Property | border-right-style-groove

Example: Here, we are using border-right-style: inset; property.

html `

CSS border-right-style property
<!-- Internal CSS Style Sheet -->
<style>
    h1 {
        border: 10px;
        border-style: solid;

        /* CSS Property for border-right-style */
        border-right-style: inset;
    }
</style>

GeeksForGeeks

`

Output:

CSS | Property | border-right-style-inset

Example: Here, we are using border-right-style: outset property.

html `

CSS border-right-style property
<!-- Internal CSS Style Sheet -->
<style>
    h1 {
        border: 10px;
        border-style: solid;

        /* CSS Property for border-right-style */
        border-right-style: outset;
    }
</style>

GeeksForGeeks

`

Output:

CSS | Property | border-right-style-outset

Example: Here, we are using border-right-style: inherit; property.

html `

CSS border-right-style Property
<!-- Internal CSS Style Sheet -->
<style>
    body {
        border-right-style: dashed;
    }

    h1 {
        color: green;
        text-align: center;
        border: 5px solid black;

        /* CSS Property | border-right-style */
        border-right-style: inherit;
    }
</style>

GeeksForGeeks

`

Output:

CSS | Property | border-right-style-inherit