alignment in bootstrap code example

Example 1: bootstrap row no-wrap

<div class="row flex-nowrap">
    <div class="col"></div>
    <div class="col"></div>
</div>

Example 2: 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 3: bootstrap display flex

<div class="d-flex">I'm a flexbox container!</div>

Example 4: bootstrap content alignment

<div class="d-flex p-2">I'm a flexbox container!</div>

Example 5: bootstrap content alignment

<div class="d-inline-flex p-2">I'm an inline flexbox container!</div>

Tags:

Html Example