Border width
Utilities for controlling the width of an element's borders
Class reference
All sides
Use the .border
, .border-0
, .border-2
, .border-4
, .border-6
, or .border-8
utilities to set the border width for all sides of an element.
Individual sides
Use the .border-{side}
, .border-{side}-0
, .border-{side}-2
, .border-{side}-4
, .border-{side}-6
, or .border-{side}-8
utilities to set the border width for one side of an element.
Between elements
You can also add borders between child elements using the divide-{x/y}-{width}
and divide-{color}
utilities.
Learn more in the Divide Width and Divide Color documentation.
Responsive
To control the border width of an element at a specific breakpoint, add a {screen}:
prefix to any existing border width utility. For example, use md:border-t-4
to apply the border-t-4
utility at only medium screen sizes and above.
<div class="border-2 **md:border-t-4** ..."></div>
For more information about Elements’ responsive design features, check out the Responsive Design documentation.
On this Page
v1.13.5