Borders
Bootstrap 5 Borders
Use border utilities to quickly style the border and border-radius of an element. Great for images, buttons, or any other element.
Basic examples
Use border utilities to add or remove an element’s borders. Choose from all borders or one at a time.
Additive
Additive classes are used to add borders.
Subtractive
Subtractive classes are used to remove borders.
Color
Change the border color using utilities built on our theme colors.
Border-width
Border-radius
Add classes to an element to easily round its corners.
Sizes
Use the scaling classes for larger or smaller rounded corners. Sizes range from 0
to 9
, and can be configured by modifying the utilities API.