VOOZH about

URL: https://www.geeksforgeeks.org/bootstrap/bootstrap-5-border-radius/

⇱ Bootstrap 5 Border-radius - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Bootstrap 5 Border-radius

Last Updated : 5 Apr, 2024

Bootstrap 5 Border-radius offers consistent and responsive control over element roundness. With predefined classes, it allows easy customization, providing sleek and modern designs. From sharp corners to smooth curves, it enhances visual appeal effortlessly

Border-radius is used to set the radius of the border on an element. The border-radius classes easily add the rounded corners

Border-radius used Classes:

Class NameDescription
roundedMakes all corners rounded of an element.
rounded-topMakes the top corners rounded of an element.
rounded-endMakes the right-side corners rounded.
rounded-bottomMakes the bottom corners rounded of an element.
rounded-startMakes the left-side corners rounded.
rounded-circleMakes the element appear as a circle.
rounded-pillMakes the element appear as a pill shape.

Syntax:

<div class="rounded">
 Content
</div>

Example of Bootstrap 5 Border-radius

Example 1: In this example, will add all border radius classes on image elements to see their effects.

Output:

👁 BootstrapBorderRadius
Bootstrap 5 Border-radius Example Output

Example 2: In this example, will add all border radius classes on div elements to see their effects.

Output:

👁 BorderRadius
Bootstrap Boder Radius Example Output
Comment

Explore