Definition and Usage
The border-right-width CSS property sets the width of the right border of a box.
- Initial medium
- Applies to all elements
- Inherited no
- Media visual
- Computed Value the absolute length or 0 if border-right-style is none or hidden
- Animatable yes, as a length
- Canonical order the unique non-ambiguous order defined by the formal grammar
Syntax
Formal syntax: <br-width>
border-right-width: 10em /* Any <length> value */
border-right-width: 3vmax
border-right-width: 6px
border-right-width: thin /* A keyword */
border-right-width: medium
border-right-width: thick
border-right-width: inherit
Values
- <br-width>
- Is either a non-negative explicit <length> value or a keyword denoting the thickness of the right border. The keyword must be one of the following values:
Style | Preview | Description |
---|
thin | | A thin border |
medium | | A medium border |
thick | | A thick border |
The specification doesn't define precisely the thickness of each fo the keywords, which is therefore implementation specific. Nevertheless, it requests that the thickness does follow the rule thin ≤ medium ≤ thick, and is constant on a single document. - inherit
- Represents the calculated value of the border-right-width of the parent's element.
Examples
No examples
Compatibility
Desktop browsers
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|
Basic support | 1.0 | 1.0 (1.0) | 4.0 | 3.5 | 1.0 (85) |
Mobile browsers
Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|
Basic support | NA | NA | NA | NA | NA |