CSS border-inline-start-color property
The border-inline-start-color
property in CSS determines the color of the logical inline start border of an element, which gets mapped to a physical border color on the basis of the directionality, text orientation, and writing mode of the element.
Syntax for border-inline-start-color
property:
Following is the syntax for the border-inline-start-color
property.
border-inline-start-color: border-color;
Example: CSS border-inline-start-color property
Here in the example below, we are using the border-inline-start-color
property with different border styles, colors, and different values. In this case, we have given the border-inline-start-color value as black. This means that there will be an inline start border in black color.
<!DOCTYPE html>
<html>
<head>
<title>Border-inline-start-color property in CSS</title>
<style type="text/css">
div {
background-color: red;
width: 150px;
height: 150px;
}
.exampleText {
writing-mode: vertical-lr;
border: 10px solid purple;
border-inline-start-color: black;
}
</style>
</head>
<body>
<div>
<p class="exampleText">Study Tonight is the best platform for learning diogital courses in a simplified way !</p>
</div>
</body>
</html>
Output:
Example 2: CSS border-inline-start-color property
Here in the example below, we are using the border-inline-start-color property with different border styles, colors, and different values. In this case, we have given the border-inline-start-color value as rgb (170, 50, 220, 0.6). This means that there will be an inline start border in the specified color.
<!DOCTYPE html>
<html>
<head>
<title>Border-inline-start-color property in CSS</title>
<style type="text/css">
div {
background-color: red;
width: 150px;
height: 150px;
}
.exampleText {
writing-mode: horizontal-tb;
border: 10px solid purple;
border-inline-start-color: rgb(170, 50, 220, .6);
direction: rtl;
}
</style>
</head>
<body>
<div>
<p class="exampleText">Study Tonight is the best platform for learning diogital courses in a simplified way !</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-start-color
property is currentcolor. This property is applicable to all elements. It is not an inherited property. The computed value for this property is the computed color. The animation type for this property is a color.