CSS border-inline-start-width Property
Description
The border-inline-start-width
CSS property is used to control the width of the border on the inline start side of an element, which is typically the left side in left-to-right languages like English. This property allows web developers to specify the thickness of the border, and it can take values like pixels, percentages, or other valid length units. It is particularly useful for creating detailed and customized border styles around elements, providing precise control over the border width on specific sides, contributing to the overall layout and aesthetics of a webpage.
- Initial value
- medium
- Applies to
- all elements
- Inherited
- no
- Computed value
- absolute length; 0 if the border style is none or hidden
- Animatable
- by computed value type
- JavaScript syntax
- object.style.borderInlineStartWidth
Interactive Demo
Inline Start Width Property
Syntax
border-inline-start-width: <border-width>
Values
- <border-width>Specifies the width of the border
Example
<div>This is a box with a border around it.</div>
div {
background-color:#eee;
color:#8b008b;
padding:.75em;
width:300px;
height:100px;
border-inline-start: dashed red;
border-inline-start-width: 10px
}
Browser Support
The following table will show you the current browser support for the CSS border-inline-start-width
property.
Desktop | |||||
79 | 69 | 41 | 56 | 12.1 |
Tablets / Mobile | |||||
69 | 41 | 48 | 12.2 | 10 | 69 |
Last updated by CSSPortal on: 1st January 2024