Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

CSS | border-block-end-style Property

  • Last Updated : 26 Mar, 2020

The border-block-end-style 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-style at the bottom of the defining element border.

Syntax:

border-block-end-style: border-style;

Property values:

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

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

Example 1:






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

Output:

Example 2:




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

Output:

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

  • Firefox
  • Opera
  • Edge



My Personal Notes arrow_drop_up
Recommended Articles
Page :