I am trying to build a responsive design in Bootstrap 3 with float left and float right elements.
I am currently using this to create the effect:
<h3 class="pull-left>Dashboard</h3>
<div class="pull-right">
<a href="#" class="btn" style="white-space:normal;">Sample Filter Button With Varying Text</a>
</div>
<div class="clearfix"></div>
</div>
This works fine on a larger screen, however, when you go to a smaller screen (mobile), the pull-right element breaks to a new line and remains 'right aligned' on the page.
How do I make it left aligned when it breaks to this new line? Bearing in mind that the contents of the element are dynamic and will have dynamic width.