CSS | border-block-end-color Property

The border-block-end-color property in CSS is used to define the individual logical block-end border property values in a single place in the style sheet. This property sets the border-color at the bottom of the defining element border.

Syntax:

border-block-end-color: border-color;

Property values:

  • border-color: This property holds the color of the border.

Below examples illustrate the border-block-end-color property in the CSS:

Example 1:



filter_none

edit
close

play_arrow

link
brightness_4
code

<!DOCTYPE html>
<html>
   
<head>
    <title>
        CSS | border-block-end-color Property
    </title>
    <style>
        h1 {
            color: green;
        }
           
        div {
            background-color: yellow;
            width: 220px;
            height: 40px;
        }
        .one {
            border: 5px solid gray;
            border-block-end-color: yellow;
            background-color: purple;
        }
    </style>
</head>
   
<body>
    <center>
        <h1>Geeksforgeeks</h1>
        <b>CSS | border-block-end-color Property</b>
        <br><br>
        <div class="one">A Computer Science Portal</div>
    </center>
</body>
   
</html>

chevron_right


Output:

Example 2:

filter_none

edit
close

play_arrow

link
brightness_4
code

<!DOCTYPE html>
<html>
   
<head>
    <title>CSS | border-block-end-color Property</title>
    <style>
        h1 {
            color: green;
        }
           
        div {
            background-color: yellow;
            width: 220px;
            height: 40px;
        }
        .one {
            border: 5px solid black;
            border-block-end-color: green;
            background-color: purple;
        }
    </style>
</head>
   
<body>
    <center>
        <h1>Geeksforgeeks</h1>
        <b>CSS | border-block-end-color Property</b>
        <br><br>
        <div class="one">A Computer Science Portal</div>
    </center>
</body>
   
</html>

chevron_right


Output:

Supported Browsers: The browsers supported by border-block-end-color property are listed below:

  • Firefox
  • Opera
  • Edge



My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.