Border Top Width

Set the top border width for an element.

Widely available

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

Chrome
Edge
Firefox
Safari

Usage

Apply a 0.25 rem top border width to an element.

<div class="w-16 h-16 bc-indigo bs-s btw-4"></div>

Responsiveness

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

Target viewport sizes with breakpoint prefixes.

sm:btw-*
Small640px
md:btw-*
Medium768px
lg:btw-*
Large1024px
xxl:btw-*
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:btw-*

Logical Properties

Use logical properties to adapt to the document's writing mode & direction.

Border Block Start Width

Set the logical block-start border width for an element.

Widely available

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

Chrome
Edge
Firefox
Safari

<div class="w-16 h-16 bc-indigo bs-s bbsw-4"></div>