Open In App

CSS border-right-style Property

The border-right-style property in CSS is used to change the appearance of the right line segment of the border of an element. 

Default Value: none



Syntax:  

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

Property Values: 



Example: In this example, we are using the border-right-style: none property.




<!DOCTYPE html>
<html>
 
<head>
    <title>
        CSS border-right-style property
    </title>
 
    <!-- 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>
 
</head>
 
<body>
    <!-- border-right-style:none; -->
    <h1>GeeksForGeeks</h1>
</body>
 
</html>

Output: 

Example: In this example, we are using border-right-style: hidden property.




<!DOCTYPE html>
<html>
 
<head>
    <title>
        CSS border-right-style property
    </title>
 
    <!-- 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>
 
</head>
 
<body>
    <!-- border-right-style:hidden; -->
    <h1>GeeksForGeeks</h1>
</body>
 
</html>

Output: 

Example: In this example, we are using border-right-style: dotted; property.




<!DOCTYPE html>
<html>
 
<head>
    <title>
        CSS border-right-style property
    </title>
 
    <!-- 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>
 
</head>
 
<body>
    <!-- border-right-style:dotted; -->
    <h1>GeeksForGeeks</h1>
</body>
 
</html>

Output: 

Example: In this example, we are using border-right-style: dashed property.




<!DOCTYPE html>
<html>
 
<head>
    <title>
        CSS border-right-style property
    </title>
 
    <!-- 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>
 
</head>
 
<body>
    <!-- border-right-style:dashed; -->
    <h1>GeeksForGeeks</h1>
</body>
 
</html>

Output: 

Example: In this example, we are using border-right-style: solid property.




<!DOCTYPE html>
<html>
 
<head>
    <title>
        CSS border-right-style property
    </title>
 
    <!-- 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>
 
</head>
 
<body>
    <!-- border-right-style:solid; -->
    <h1>GeeksForGeeks</h1>
</body>
 
</html>

Output: 

Example: In this example, we are using border-right-style: double property.




<!DOCTYPE html>
<html>
 
<head>
    <title>
        CSS border-right-style property
    </title>
 
    <!-- 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>
 
</head>
 
<body>
    <!-- border-right-style:double; -->
    <h1>GeeksForGeeks</h1>
</body>
 
</html>

Output: 

Example: In this example, we are using border-right-style: groove; property.




<!DOCTYPE html>
<html>
 
<head>
    <title>
        CSS border-right-style property
    </title>
 
    <!-- Internal CSS Style Sheet -->
    <style>
        h1 {
            border: 10px;
            border-style: solid;
 
            /* CSS Property for border-right-style */
            border-right-style: groove;
        }
    </style>
 
</head>
 
<body>
    <!-- border-right-style:groove; -->
    <h1>GeeksForGeeks</h1>
</body>
 
</html>

Output: 

Example: In this example, we are using border-right-style: inset; property.




<!DOCTYPE html>
<html>
 
<head>
    <title>
        CSS border-right-style property
    </title>
 
    <!-- Internal CSS Style Sheet -->
    <style>
        h1 {
            border: 10px;
            border-style: solid;
 
            /* CSS Property for border-right-style */
            border-right-style: inset;
        }
    </style>
 
</head>
 
<body>
    <!-- border-right-style:inset; -->
    <h1>GeeksForGeeks</h1>
</body>
 
</html>

Output: 

Example: In this example, we are using border-right-style: outset property.




<!DOCTYPE html>
<html>
 
<head>
    <title>
        CSS border-right-style property
    </title>
 
    <!-- Internal CSS Style Sheet -->
    <style>
        h1 {
            border: 10px;
            border-style: solid;
 
            /* CSS Property for border-right-style */
            border-right-style: outset;
        }
    </style>
 
</head>
 
<body>
    <!-- border-right-style:outset; -->
    <h1>GeeksForGeeks</h1>
</body>
 
</html>

Output: 

Example: In this example, we are using border-right-style: inherit; property.




<!DOCTYPE html>
<html>
 
<head>
    <title>
        CSS border-right-style Property
    </title>
 
    <!-- 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>
</head>
 
<body>
    <!-- border-right-style: inherit; -->
    <h1>GeeksForGeeks</h1>
</body>
 
</html>

Output: 

Supported Browsers: The browser supported by border-right-style property are listed below: 


Article Tags :