![]() |
VOOZH | about |
Bootstrap 5 Spinners Margin is used to create spinners in different margins. For margin spinners, we will use .m class with five different sizes from 0 to 5. Also, auto is used for margin auto. For different sides of the margin, we will use t (for top), b (for bottom), s (for start), e (for end), x (for both left and right), y (for top and bottom), and blank (for all sides).
The following syntax are used in the various classes for adding spacing:
Property: There are two ways of adding spacing to the elements.
Sides: This allows users to add spacing in content to a specific side wherever required.
Size: This allows users to add a specific amount of spacing to a level.
Example 1: In this example, we will add a margin to the spinners element.
Output:
Example 2: In this example, we will add a margin to the spinners element.
Output:
Reference: https://getbootstrap.com/docs/5.0/components/spinners/#margin