CSS border-inline-width Property
Last Updated :
12 Jul, 2025
The border-inline-width property sets the width of an element's borders in the inline direction. It specifies the thickness of the inline-start and inline-end borders, adapting to the text direction. This property ensures consistent border styling in both left-to-right and right-to-left layouts.
Syntax:
border-inline-width: width;
Property values:
- width: This property holds the width of the border.
The below examples illustrate the border-inline-width property in the CSS:
Example 1: In this example, we use border-inline-width to set the width of inline borders while retaining the overall layout with dashed borders and background colors for clarity.
html
<!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>
Output:

Example 2:
html
<!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>
Output:

Supported Browsers:
The browser supported by border-inline-width property are listed below:
Reference:
https://developer.mozilla.org/en-US/docs/Web/CSS/border-inline-width