core-logo

Borders

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

On this page:



Border

Use border utilities to add or remove an element’s borders. Choose from all borders or one at a time.

Additive

<span class="c-border"></span>
<span class="c-border-top"></span>
<span class="c-border-right"></span>
<span class="c-border-bottom"></span>
<span class="c-border-left"></span>

Subtractive

<span class="c-border-0"></span>
<span class="c-border-top-0"></span>
<span class="c-border-right-0"></span>
<span class="c-border-bottom-0"></span>
<span class="c-border-left-0"></span>

Border color

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

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

Border-radius

Add classes to an element to easily round its corners.

Example rounded image75x75 Example top rounded image75x75 Example right rounded image75x75 Example bottom rounded image75x75 Example left rounded image75x75 Completely round image75x75 Rounded pill image150x75 Example non-rounded image (overrides rounding applied elsewhere)75x75
<img src="..." alt="..." class="c-rounded">
<img src="..." alt="..." class="c-rounded-top">
<img src="..." alt="..." class="c-rounded-right">
<img src="..." alt="..." class="c-rounded-bottom">
<img src="..." alt="..." class="c-rounded-left">
<img src="..." alt="..." class="c-rounded-circle">
<img src="..." alt="..." class="c-rounded-pill">
<img src="..." alt="..." class="c-rounded-0">

Sizes

Use .c-rounded-lg or .c-rounded-sm for larger or smaller border-radius.

Example small rounded image75x75 Example large rounded image75x75
<img src="..." alt="..." class="c-rounded-sm">
<img src="..." alt="..." class="c-rounded-lg">