CSS | border-inline-style Property
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:
border-inline-style: style;
Property values:
- style: This property holds the style of the border dashed, border, dotted, etc.
Below examples illustrate the border-inline-style property in the CSS:
Example 1:
<!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 >w3wiki</ h1 > < b >CSS | border-inline-style Property</ b > < br >< br > < div class = "one" >A Computer Science Portal</ div > </ center > </ body > </ html > |
Output:
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 >w3wiki</ h1 > < b >CSS | border-inline-style Property</ b > < br >< br > < div class = "one" >A Computer Science Portal</ div > </ center > </ body > </ html > |
Output:
Reference: https://developer.mozilla.org/en-US/docs/Web/CSS/border-inline-style#:~:text=The%20border%2Dinline%2Dstyle%20CSS,%2C%20directionality%2C%20and%20text%20orientation.
Supported Browsers: The browser supported by border-inline-style property are listed below:
- Firefox
- Opera
- Edge