Related Articles

Related Articles

CSS | border-inline-width Property
  • Last Updated : 23 Apr, 2020

The border-inline-width property in CSS is used to set the individual logical inline border-width property values in a single place in the style sheet. It sets the border width top, and bottom of the defining border element.

Syntax:

border-inline-width: width;

Property values:

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

Below examples illustrate the border-inline-width property in the CSS:

Example 1:



filter_none

edit
close

play_arrow

link
brightness_4
code

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

chevron_right


Output:

Supported Browsers: The browser supported by border-inline-width property are listed below:

  • Firefox
  • Opera
  • Edge

Reference: https://developer.mozilla.org/en-US/docs/Web/CSS/border-inline-width




My Personal Notes arrow_drop_up
Recommended Articles
Page :