Signup/Sign In
PUBLISHED ON: APRIL 15, 2021

CSS border-inline-end-style property

The border-inline-end-style property in CSS determines the style of the logical inline end border of an element, which gets mapped to a physical border style on the basis of the directionality, text orientation, and writing mode of the element.

Properties related to this property are border-block-end-style, border-block-start-style, and border-inline-start-style, which defines the other border styles of an element.

Syntax for border-inline-end-style property:

Following is the syntax for the border-inline-end-style property.

border-inline-end-style: border-style;

Example: CSS border-inline-end-style property

Here in the example below, we are using the border-inline-end-style property with different border styles, colors, and different values. In this case, we have given the border-inline-end-style value as dashed. This means that there will be an inline end border in a dashed fashion.

<!DOCTYPE html>
<html>

<head>
	<title>Border-inline-end-style property in CSS</title>
	<style type="text/css">
		div {
		  background-color: purple;
		  width: 120px;
		  height: 120px;
		}
		
		.exampleText {
		  writing-mode: vertical-lr;
		  border: 8px skyblue;
		  border-inline-end-style: dashed;
		}
	</style>
</head>

<body>
	<div>
		<p class="exampleText">Example text</p>
	</div>
</body>

</html>

Output:

Example 2: CSS border-inline-end-style property

Here in the example below, we are using the border-inline-end-style property with different border styles, colors, and their different values. In this case, we have given the border-inline-end-style value as groove along with the vertical value.

<!DOCTYPE html>
<html>

<head>
	<title>Border-inline-end-style property in CSS</title>
	<style type="text/css">
		div {
		  background-color: purple;
		  width: 120px;
		  height: 120px;
		}
		
		.exampleText {
		  border: 8px red;
		  border-inline-end-style: groove;
		writing-mode: horizontal-tb;
		direction: rtl;
		}
	</style>
</head>

<body>
	<div>
		<p class="exampleText">Study Tonight</p>
	</div>
</body>

</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 in CSS is none. This property is applicable to all elements. It is not an inherited property. The computed value for this property is the as specified one. The animation type for this property is discrete.



About the author:
I like to write content about technology, helping users to understand technical terms easily. I also write about Python, Java, and various other programming language. I have an experience of 3+ years in content creation.