How can we use Bootstrap 4 to position navigation and text within a Card Header in order to have them display on a single row?
<div class="card">
<div class="card-header">
Heading
<ul class="nav nav-pills card-header-pills">
<li class="nav-item">
<a href="#">Nav 1</a>
</li>
<li class="nav-item">
<a href="#">Nav 2</a>
</li>
<li class="nav-item">
<a href="#">Nav 3</a>
</li>
</ul>
</div>
<div class="card-body">
...
</div>
</div>
The HTML code provided ensures that the navigation appears on the same line as the heading:
https://i.sstatic.net/vAq5o.png
The goal is to have the heading aligned to the left, while the navigation items are aligned to the right within the Card Header.