Border radius
Bootstrap 5 Border radius component
Responsive Border radius with Bootstrap 5. Use border radius to define the radius of the element's corners.
Basic example
Add classes to an element to easily round its corners.
Border Radius 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.
Border radius circle
Add rounded-circle
class to change the shape of your element to circle. It is a perfect solution for avatars.
Border radius 0
Add rounded-0
class to change the shape of your element to square.
Border radius rounded
Add rounded
class to round all the vertices of the square.
Border radius top
Add rounded-top
class to round the top vertices of the square.
Border radius bottom
Add rounded-bottom
class to round the bottom vertices of the square.
Border radius on just one image
Style your image easily using selected border radius class.
In this example we are using rounded
class on the avatar image but feel free to choose the most convenient class for you!