In my Twitter Bootstrap nav-tabs
, I have an image that follows all of my tabs, and I want it to float right. I've experimented with changing the float, text-align, and other properties, including using the pull-right
class from another related SO question.
<ul class="nav nav-tabs" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="stuff-tab" data-toggle="tab" href="#stuff" role="tab" aria-controls="stuff" aria-selected="true">Stuff</a>
</li>
<!-- ... -->
<img class="pull-right text-right float-right" src="myimg.png" width="32px" height="32px">
What CSS or Bootstrap class should I use to ensure the image floats to the right?
(This is for Bootstrap 4)