I am new to HTML/CSS, I am struggling to figure out how I can get a button toolbar to align to the right, but then stop floating right (wrap around as an inline-block would) when the page width gets smaller?
Currently, I'm floating the buttons right to get the right-aligned effect I want, but floating might not be the best way.
I could use media queries but I was wondering if anyone knows of a more straightforward/standard way?
<div style="margin: 60px 20px 60px 20px;">
<div style="display:inline-block">
<h3>Some kind of page title</h3><br />
</div>
<div class="btn-group pull-right" role="group" aria-label="User Categories" style="display:inline-block">
<button type="button" class="btn btn-default-grey btn-sm storyFilter" data-storyfilter-category="ReadLater" data-results-target="#storyList" data-toggle="tooltip" data-placement="bottom" title="Read Later">
<i style="margin-top:4px" class="glyphicon glyphicon-bookmark" aria-hidden="true"></i>
</button>
<button type="button" class="btn btn-default-grey btn-sm storyFilter" data-storyfilter-category="PlanToUse" data-results-target="#storyList" data-toggle="tooltip" data-placement="bottom" title="Plan To Use">
<i style="margin-top:4px" class="glyphicon glyphicon-pushpin" aria-hidden="true"></i>
</button>
<button type="button" class="btn btn-default-grey btn-sm storyFilter" data-storyfilter-category="Used" data-results-target="#storyList" data-toggle="tooltip" data-placement="bottom" title="Used">
<i style="margin-top:4px" class="glyphicon glyphicon-check" aria-hidden="true"></i>
</button>
<button type="button" class="btn btn-default-grey btn-sm storyFilter" data-storyfilter-category="Submitted" data-results-target="#storyList" data-toggle="tooltip" data-placement="bottom" title="My Stories">
<i style="margin-top:4px" class="glyphicon glyphicon-list-alt" aria-hidden="true"></i>
</button>
</div>
</div>