bootstrap 4 class d-block code example
Example 1: bootstrap display inline block
<div class="d-inline-block"></div>
Example 2: is display-block a class
<span class="d-block p-2 bg-primary text-white">d-block</span>
<span class="d-block p-2 bg-dark text-white">d-block</span>