Border Style
Controls the style of the borders of an element.
Widely available
This feature is well established and works across many devices and browser versions.
Chrome
Edge
Firefox
Safari
| Class | Style |
|---|---|
b-none | border-style: none; |
b-d | border-style: dashed; |
b-s | border-style: solid; |
This example showcases various border-style utilities:
- The dashed utility creates a border with dashed lines.
- The none utility removes the border entirely.
- The solid utility creates a continuous border line.
A
B
C
<div class="d-g g-16 gtc-1 sm:gtc-3"> <div class="ai-c b-2 b-none bc-indigo d-f d-16 jc-c tc-indigo">A</div> <div class="ai-c b-2 b-d bc-indigo d-f d-16 jc-c tc-indigo">B</div> <div class="ai-c b-2 b-s bc-indigo d-f d-16 jc-c tc-indigo">C</div></div>Using utility variants
Learn how to override existing utilities based on the user's screen size or other factors, such as hover states.
Targeting different viewports
You can combine responsive breakpoints like sm:b-*, md:b-*, lg:b-*, and xxl:b-* to allow targeting specific utilities in different viewports.
Targeting hover states
Alternatively, you can apply :hover by using h:b-* utility to override elements and change their values when hovering over them.