VOOZH about

URL: https://www.geeksforgeeks.org/bootstrap/bootstrap-5-spinners-floats-placements/

⇱ Bootstrap 5 Spinners Floats Placements - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Bootstrap 5 Spinners Floats Placements

Last Updated : 9 Nov, 2022

Bootstrap 5 Spinners Float Placements are used to set the position of spinner elements to left, right, or none depending on the requirements. It is mostly used for responsive design.

Spinners Floats Placements used Classes:

  • .float-start: It is used to set the position of spinner elements to start.
  • .float-end: It is used to set the position of spinner elements to the end.
  • .float-none: It is used to set the position of spinner elements to none.

Syntax:

<div class="clearfix">
 <div class="spinner-border float-end" role="status">
 <span class="visually-hidden">Loading...</span>
 </div>
</div>
 

Example 1: In this example, we will create the spinner and set its position using the float placements.

Output:

👁 Image
 

Example 2: In this example, we will create the button spinner and set its position using the float placements.

Output:

👁 Image
 

Reference: https://getbootstrap.com/docs/5.0/components/spinners/#floats

Comment

Explore