Check out this bootstrap navbar example
You can see a screenshot here.
<ul class="nav nav-tabs" style="display: inlne-block">
<li class="nav-item" style="text-align: center; display: inline;">
<div>
<a class="nav-link active show p-1" data-toggle="tab" href role="tab">1</a>
<button type="button" class="btn btn-white" style="margin-left: 7px;">Brick 1</button>
</div>
</li>
<li class="nav-item" style="text-align: center; display: inline;">
<a class="nav-link active show p-1" data-toggle="tab" href role="tab">2</a>
<button type="button" class="btn btn-white" style="margin-left: 7px;">Brick 2</button>
</li>
</ul>
The requirement is for the a
and button
elements to be displayed in a single line.
Since each element has its own event handler, they cannot be nested within each other.
An attempt was made using this solution with display: inline
, but it did not achieve the desired outcome.
You can view the code on JSFiddle here.