Open In App

CSS border-bottom-style Property

The border-bottom-style property in CSS is used to set the style of the bottom border of an element. 

Syntax: 



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

Property Values: 

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






<!DOCTYPE html>
<html>
 
<head>
    <title>
        CSS border-bottom-style property
    </title>
 
    <!-- Internal CSS Style Sheet -->
    <style>
        h1 {
            color: green;
            text-align: center;
            border: 5px solid black;
 
            /* CSS Property for border-bottom-style */
            border-bottom-style: none;
        }
    </style>
 
</head>
 
<body>
    <!-- border-bottom-style:none; -->
    <h1>GeeksForGeeks</h1>
</body>
 
</html>

Output:

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




<!DOCTYPE html>
<html>
 
<head>
    <title>
        CSS border-bottom-style property
    </title>
 
    <!-- Internal CSS Style Sheet -->
    <style>
        h1 {
            color: green;
            text-align: center;
            border: 5px solid black;
 
            /* CSS Property for border-bottom-style */
            border-bottom-style: hidden;
        }
    </style>
 
</head>
 
<body>
    <!-- border-bottom-style:hidden; -->
    <h1>GeeksForGeeks</h1>
</body>
 
</html>

Output:

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




<!DOCTYPE html>
<html>
 
<head>
    <title>
        CSS border-bottom-style property
    </title>
 
    <!-- Internal CSS Style Sheet -->
    <style>
        h1 {
            color: green;
            text-align: center;
            border: 5px solid black;
 
            /* CSS Property for border-bottom-style */
            border-bottom-style: dotted;
        }
    </style>
 
</head>
 
<body>
    <!-- border-bottom-style:dotted; -->
    <h1>GeeksForGeeks</h1>
</body>
 
</html>

Output:

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




<!DOCTYPE html>
<html>
 
<head>
    <title>
        CSS border-bottom-style property
    </title>
 
    <!-- Internal CSS Style Sheet -->
    <style>
        h1 {
            color: green;
            text-align: center;
            border: 5px solid black;
 
            /* CSS Property for border-bottom-style */
            border-bottom-style: dashed;
        }
    </style>
 
</head>
 
<body>
    <!-- border-bottom-style:dashed; -->
    <h1>GeeksForGeeks</h1>
</body>
 
</html>

Output:

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




<!DOCTYPE html>
<html>
 
<head>
    <title>
        CSS border-bottom-style property
    </title>
 
    <!-- Internal CSS Style Sheet -->
    <style>
        h1 {
            color: green;
            text-align: center;
            border: 5px solid black;
 
            /* CSS Property for border-bottom-style */
            border-bottom-style: solid;
        }
    </style>
 
</head>
 
<body>
    <!-- border-bottom-style:solid; -->
    <h1>GeeksForGeeks</h1>
</body>
 
</html>

Output:

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




<!DOCTYPE html>
<html>
 
<head>
    <title>
        CSS border-bottom-style property
    </title>
 
    <!-- Internal CSS Style Sheet -->
    <style>
        h1 {
            color: green;
            text-align: center;
            border: 5px solid black;
 
            /* CSS Property for border-bottom-style */
            border-bottom-style: double;
        }
    </style>
 
</head>
 
<body>
    <!-- border-bottom-style:double; -->
    <h1>GeeksForGeeks</h1>
</body>
 
</html>

Output:

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




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

Output:

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




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

Output:

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




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

Output:

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




<!DOCTYPE html>
<html>
 
<head>
    <title>
        CSS border-bottom-style property
    </title>
 
    <!-- Internal CSS Style Sheet -->
    <style>
        h1 {
            color: green;
            text-align: center;
            border: 5px solid black;
 
            /* CSS Property for border-bottom-style */
            border-bottom-style: initial;
        }
    </style>
 
</head>
 
<body>
    <!-- border-bottom-style:initial; -->
    <h1>GeeksForGeeks</h1>
</body>
 
</html>

Output:

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




<!DOCTYPE html>
<html>
 
<head>
    <title>
        CSS border-bottom-style Property
    </title>
 
    <!-- Internal CSS Style Sheet -->
    <style>
        div {
            border-bottom-style: double;
        }
 
        h1 {
            color: green;
            text-align: center;
            border: 5px solid black;
 
            /* CSS Property | border-bottom-style */
            border-bottom-style: inherit;
        }
    </style>
</head>
 
<body>
    <div>
 
        <!-- border-bottom-style: inherit; -->
        <h1>GeeksForGeeks</h1>
    </div>
</body>
 
</html>

Output:

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


Article Tags :