inline-block bootstrap code example

Example 1: bootstrap display inline block

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

Example 2: Inline bootstrap

<ul class="list-inline">
  <li class="list-inline-item">This is a list item.</li>
  <li class="list-inline-item">And another one.</li>
  <li class="list-inline-item">But they're displayed inline.</li>
</ul>

Example 3: bootstrap display block

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

d-none  =  to hide

Example 4: bootstrap display none

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

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

Tags:

Html Example