bootstrap space between code example
Example 1: bootstrap space between
<div class="d-flex justify-content-between">...</div>
Example 2: align items center bootstrap
<div class="d-flex align-items-start">...</div>
<div class="d-flex align-items-end">...</div>
<div class="d-flex align-items-center">...</div>
<div class="d-flex align-items-baseline">...</div>
<div class="d-flex align-items-stretch">...</div>
Example 3: bootstrap align right
To aligning div in bootstrap you can use bootstrap classes like
1. float-left
2. float-right
3. float-none
<div class="float-left">Float left on all viewport sizes</div><br>
<div class="float-right">Float right on all viewport sizes</div><br>
<div class="float-none">Don't float on all viewport sizes</div>
Example 4: bootstrap row no-wrap
<div class="row flex-nowrap">
<div class="col"></div>
<div class="col"></div>
</div>
Example 5: alighn right boostrap 4
<div class="float-left">Float left on all viewport sizes</div><br>
<div class="float-right">Float right on all viewport sizes</div><br>
<div class="float-none">Don't float on all viewport sizes</div>
Example 6: bootstrap Margin and padding
Use the margin and padding spacing utilities to control how elements and
components are spaced and sized. Bootstrap 4 includes a five-level scale for
spacing utilities, based on a 1rem value default $spacer variable. Choose
values for all viewports (e.g., .mr-3 for margin-right: 1rem), or pick
responsive variants to target specific viewports (e.g., .mr-md-3 for
margin-right: 1rem starting at the md breakpoint).
<div class="my-0 bg-warning">Margin Y 0</div>
<div class="my-1 bg-warning">Margin Y 1</div>
<div class="my-2 bg-warning">Margin Y 2</div>
<div class="my-3 bg-warning">Margin Y 3</div>
<div class="my-4 bg-warning">Margin Y 4</div>
<div class="my-5 bg-warning">Margin Y 5</div>
<div class="my-auto bg-warning">Margin Y Auto</div>