The border-inline-style property is an inbuilt property in CSS which is used to set the individual logical block inline-border-style property values in a single place in the style sheet. It sets the inline border-style top(left), and bottom(right) of the defining border element.
Syntax:
html
Output:
Example 2:
html
Output:
Reference: https://developer.mozilla.org/en-US/docs/Web/CSS/border-inline-style#:~:text=The%20border-inline-style%20CSS,%2C%20directionality%2C%20and%20text%20orientation.
Supported Browsers: The browser supported by border-inline-style property are listed below:
border-inline-style: style;Property values:
- style: This property holds the style of the border dashed, border, dotted, etc.
<!DOCTYPE html>
<html>
<head>
<title>CSS | border-inline-style Property</title>
<style>
h1 {
color: green;
}
div {
background-color: yellow;
width: 220px;
height: 40px;
}
.one {
border: 5px solid cyan;
border-inline-style: dashed;
background-color: purple;
}
</style>
</head>
<body>
<center>
<h1>Geeksforgeeks</h1>
<b>CSS | border-inline-style Property</b>
<br><br>
<div class="one">A Computer Science Portal</div>
</center>
</body>
</html>
Example 2:
<!DOCTYPE html>
<html>
<head>
<title>CSS | border-inline-style Property</title>
<style>
h1 {
color: green;
}
div {
background-color: yellow;
width: 220px;
height: 40px;
}
.one {
border: 5px dotted cyan;
border-inline-style: solid;
background-color: purple;
}
</style>
</head>
<body>
<center>
<h1>Geeksforgeeks</h1>
<b>CSS | border-inline-style Property</b>
<br><br>
<div class="one">A Computer Science Portal</div>
</center>
</body>
</html>
Reference: https://developer.mozilla.org/en-US/docs/Web/CSS/border-inline-style#:~:text=The%20border-inline-style%20CSS,%2C%20directionality%2C%20and%20text%20orientation.
Supported Browsers: The browser supported by border-inline-style property are listed below:
- Firefox
- Opera
- Edge