Skip to content
Related Articles

Related Articles

CSS | border-block-end-width Property

View Discussion
Improve Article
Save Article
  • Last Updated : 29 Jun, 2022
View Discussion
Improve Article
Save Article

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

Syntax:

border-block-end-width: border-width;

Property values:

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

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

Example 1: 

html




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

Output:

  

Example 2: 

html




<!DOCTYPE html>
<html>
  
<head>
    <title>CSS | border-block-end-width Property</title>
    <style>
        h1 {
            color: green;
        }
          
        div {
            background-color: yellow;
            width: 220px;
            height: 40px;
        }
        .one {
            border: 5px solid black;
            border-block-end-width: 2px;
            background-color: purple;
        }
    </style>
</head>
  
<body>
    <center>
        <h1>Geeksforgeeks</h1>
        <b>CSS | border-block-end-width 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-width property are listed below:

  • Chrome 69
  • Firefox 41
  • Opera 56
  • Edge 79
  • Safari 12.1

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!