bootstrap display inline code example

Example 1: bootstrap display inline block

<div class="d-inline-block"></div>

Example 2: bootstrap display block

<div class="d-block"></div>
d-block = for displaying

d-none  =  to hide

Example 3: bootstrap display none

<!-- Bootstrap 4 -->
<div class="d-none"></div>

<!-- Bootstrap 3 -->
<!-- <div class="hidden-{screen size}"></div> -->
<div class="hidden-md"></div>

Example 4: 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>

Tags:

Css Example