Border Width

Utilities for controlling the border width of an element.

ClassProperties
.border-0border-width: 0;
.border-1border-width: 1px;
.border-2border-width: 2px;
.border-3border-width: 3px;
.border-4border-width: 4px;
.border-5border-width: 5px;

Basic usage

All sides

Use the border with the border-2, border-4, or border-5 utilities to set the border width for all sides of an element.

border

border-2

border-4

border-5

<div class="border border-secondary ..."></div>
<div class="border border-2 border-secondary ..."></div>
<div class="border border-4 border-secondary ..."></div>
<div class="border border-5 border-secondary ..."></div>

Individual sides

Use the border-{side} with border-2, border-3 or border-5 utilities to set the border width for one side of an element.

border-top

border-end

border-bottom

border-start

<div class="border-top border-4 border-secondary ..."></div>
<div class="border-end border-4 border-secondary ..."></div>
<div class="border-bottom border-4 border-secondary ..."></div>
<div class="border-start border-4 border-secondary ..."></div>

Horizontal and vertical sides

Use the border-{side} and border-{width} utilities to set the border width on two sides of an element at the same time.

<div class="border-top border-bottom border-4 border-secondary ..."></div>
<div class="border-end border-start border-4 border-secondary ..."></div>