Borders

Use border utilities to quickly style the border and border-radius of an element. Great for images, buttons, or any other element.

Additive

<!-- borders -->
<span class="border"></span>
<span class="border-top"></span>
<span class="border-end"></span>
<span class="border-bottom"></span>
<span class="border-start"></span>

Subtractive

 <!-- Subtractive -->
<span class="border-0"></span>
<span class="border-top-0"></span>
<span class="border-end-0"></span>
<span class="border-bottom-0"></span>
<span class="border-start-0"></span>

Border color

Change the border color using utilities built on our theme colors.

<!-- border color -->
<span class="border border-primary"></span>
<span class="border border-secondary"></span>
<span class="border border-success"></span>
<span class="border border-danger"></span>
<span class="border border-warning"></span>
<span class="border border-info"></span>
<span class="border border-light"></span>
<span class="border border-dark"></span>
<span class="border border-white"></span>

Border radius

Add classes to an element to easily round its corners.

...
<!-- border radius -->
<img src="..." alt="..." class="rounded">
<img src="..." alt="..." class="rounded-top">
<img src="..." alt="..." class="rounded-end">
<img src="..." alt="..." class="rounded-bottom">
<img src="..." alt="..." class="rounded-start">
<img src="..." alt="..." class="rounded-circle">
<img src="..." alt="..." class="rounded-pill">
<img src="..." alt="..." class="rounded-0">

Sizes

Use .rounded-3 or .rounded-0 for larger or smaller border-radius.

 <!-- Size -->
<img src="..." alt="..." class="rounded-0">
<img src="..." alt="..." class="rounded-3">