Widely available
This feature is well established and works across many devices and browser versions.
Chrome
Edge
Firefox
Safari
bxw-0border-inline-width: 0;bxw-1border-inline-width: 1px;bxw-2border-inline-width: 2px;bxw-3border-inline-width: 3px;bxw-4border-inline-width: 4px;bxw-5border-inline-width: 5px;bxw-6border-inline-width: 6px;bxw-7border-inline-width: 7px;bxw-8border-inline-width: 8px;Responsiveness
Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.
Target viewport sizes with breakpoint prefixes.
sm:bxw-(value)Small≥640px
md:bxw-(value)Medium≥768px
lg:bxw-(value)Large≥1024px
xxl:bxw-(value)Extra Large≥1536px
Hover State
Apply styles conditionally on hover using the h: prefix.
Add the h: prefix to apply styles only when the user hovers over the element.
Syntax:
h:bxw-(value)Negative Values
Use negative variants to apply negative border widths.
Use the -- syntax to apply negative numeric values.
Syntax:
bxw--(value)