Border Width

Set the width for element borders.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari

Usage

A
B
C
<div class="d-g g-16 gtc-1 sm:gtc-3">
<div class="ai-c bw-1 bc-indigo bs-s d-f w-16 h-16 jc-c c-indigo">A</div>
<div class="ai-c bw-2 bc-indigo bs-s d-f w-16 h-16 jc-c c-indigo">B</div>
<div class="ai-c bw-3 bc-indigo bs-s d-f w-16 h-16 jc-c c-indigo">C</div>
</div>

Border Top Width

Control the width of an element's top border.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari

A
B
C
<div class="d-g g-16 gtc-1 sm:gtc-3">
<div class="ai-c btw-1 bc-indigo bs-s d-f w-16 h-16 jc-c c-indigo">A</div>
<div class="ai-c btw-2 bc-indigo bs-s d-f w-16 h-16 jc-c c-indigo">B</div>
<div class="ai-c btw-3 bc-indigo bs-s d-f w-16 h-16 jc-c c-indigo">C</div>
</div>

Border Right Width

Control the width of an element's right border.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari

A
B
C
<div class="d-g g-16 gtc-1 sm:gtc-3">
<div class="ai-c brw-1 bc-indigo bs-s d-f w-16 h-16 jc-c c-indigo">A</div>
<div class="ai-c brw-2 bc-indigo bs-s d-f w-16 h-16 jc-c c-indigo">B</div>
<div class="ai-c brw-3 bc-indigo bs-s d-f w-16 h-16 jc-c c-indigo">C</div>
</div>

Border Bottom Width

Control the width of an element's bottom border.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari

A
B
C
<div class="d-g g-16 gtc-1 sm:gtc-3">
<div class="ai-c bbw-1 bc-indigo bs-s d-f w-16 h-16 jc-c c-indigo">A</div>
<div class="ai-c bbw-2 bc-indigo bs-s d-f w-16 h-16 jc-c c-indigo">B</div>
<div class="ai-c bbw-3 bc-indigo bs-s d-f w-16 h-16 jc-c c-indigo">C</div>
</div>

Border Left Width

Control the width of an element's left border.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari

A
B
C
<div class="d-g g-16 gtc-1 sm:gtc-3">
<div class="ai-c blw-1 bc-indigo bs-s d-f w-16 h-16 jc-c c-indigo">A</div>
<div class="ai-c blw-2 bc-indigo bs-s d-f w-16 h-16 jc-c c-indigo">B</div>
<div class="ai-c blw-3 bc-indigo bs-s d-f w-16 h-16 jc-c c-indigo">C</div>
</div>

Responsiveness

Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.

Target viewport sizes with breakpoint prefixes.

sm:b-*
Small640px
md:b-*
Medium768px
lg:b-*
Large1024px
xxl:b-*
Extra Large1536px

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:b-*

Negative Values

Use negative variants to apply negative border width values.

Use the -- syntax to apply negative numeric values.

Syntax:b--*