VOOZH about

URL: https://www.geeksforgeeks.org/bootstrap/bootstrap-5-borders-sizes/

⇱ Bootstrap 5 Borders Sizes - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Bootstrap 5 Borders Sizes

Last Updated : 7 Nov, 2022

Bootstrap 5 Border utility is used to set the style of the border element. The border styles can be of border-color, border-width, border-radius, etc.

The Border Sizes are used to set the border-radius rounded corners larger or smaller. The range of border sizes varies from 0 to 3, where 0 represents smaller-size rounded corners and 3 represents larger-size rounded corners.

Borders Sizes used Classes:

  • .rounded-0
  • .rounded-1
  • .rounded-2
  • .rounded-3
 

Syntax:

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

Example 1: In this example, we will add different border sizes on the div elements.

Output:

👁 Image
 

Example 2: In this example, we will add different border sizes on the image elements.

Output:

👁 Image
 

Reference: https://getbootstrap.com/docs/5.0/utilities/borders/#sizes

Comment

Explore