instead of using block in bootstrap code example Example: bootstrap display inline block <div class="d-inline-block"></div>