CSS border-inline-end-width property
The border-inline-end-width
property in CSS determines the width of the logical inline-end-border of a specific element, which gets mapped to a physical border-width based on the writing mode, text orientation, and directionality of the element.
Properties related to the border-inline-end-width
property is the border-block-end-width
, border-block-start-width
, and border-inline-start-width
properties, which determine the other border widths of the element.
Syntax for border-inline-end-width
property:
Following is the syntax of the border-inline-end-width
property.
border-inline-end-width: border-width;
Example: CSS border-inline-end-width
property
Here in the example below, we are using the border-inline-end-width property with different border width, styles, colors, and their different values. In this case, we have given the border-inline-end-width value as 5 px. This means that there will be an inline end border having a width of 5 px.
<!DOCTYPE html>
<html>
<head>
<title>Border-inline-end-width property in CSS</title>
<style type="text/css">
div {
background-color: green;
width: 120px;
height: 120px;
}
.exampleText {
writing-mode: vertical-lr;
border: 1px solid blue;
border-inline-end-width: 5px;
}
</style>
</head>
<div>
<p class="exampleText">Study Tonight</p>
</div>
</html>
Output:
Example 2: CSS border-inline-end-width
property
Here in the example below, we are using the border-inline-end-width
property with different border width, styles, colors, and their different values. In this case, we have given the border-inline-end-width value as thick. This means that there will be an inline end border having a thick border.
<!DOCTYPE html>
<html>
<head>
<title>Border-inline-end-width property in CSS</title>
<style type="text/css">
div {
background-color: green;
width: 120px;
height: 120px;
}
.exampleText {
writing-mode: horizontal-tb;
border: 5px solid blue;
border-inline-end-width: thick;
}
</style>
</head>
<div>
<p class="exampleText">Study Tonight</p>
</div>
</html>
Output:
Browser Compatibility
There are many browsers that do not support all the latest CSS properties. Hence, while developing any webpage, if you are using any CSS property you must check the browser compatibility for that CSS property and then use it. It is of immense importance today when there is a large variety of web browsers available.
Name of Browser |
Background size |
contain and cover |
Chrome |
69 |
69 |
Edge |
79 |
79 |
Firefox |
41 |
41 |
Internet Explorer |
no |
no |
Opera |
56 |
56 |
Safari |
12.1 |
12.1 |
Webview Android |
69 |
69 |
Chrome Android |
69 |
69 |
Firefox Android |
41 |
41 |
Opera Android |
48 |
48 |
IOS Safari |
12.2 |
12.2 |
Samsung Internet |
10.0 |
10.0 |
Conclusion
The initial value for the border-inline-end-style
property is medium. This property is applicable to all elements. It is not an inherited property. Percentages refer to the logical width of the containing block. The computed value for this property is the absolute length or zero in case if the border style is none or hidden. The animation type for this property is a length.