float-center bootstrap code example
Example 1: bootstrap div vertical center
<div class="jumbotron d-flex align-items-center min-vh-100">
<div class="container text-center">
I am centered vertically
</div>
</div>
Example 2: 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 3: float in bootstrap
Toggle floats on any element, across any breakpoint, using our responsive float utilities.
<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>