I'm trying to align a site-name + 2 images as my site header. Using Bootstrap grid layout, I can easily achieve this with a nice looking in medium/large size devices.
| site-name | | image1 | | image2 |
However, with small size devices, my 3 columns breaks into 3 rows and the layout is not what I want:
| site-name |
| image1 |
| image2 |
As I'm using just 3 small columns, I would like to fit them in the same row since they are using just a few pixels. The result for small screens would be something like:
| site-name | | image1 | | image2 |
I have created a Bootply demo. The code below is the best that I could do so far. I've already tried using things like .pull-right
to avoid adding the empty 8-cols, but the result was the same.
Current code:
<div class="row">
<div class="col-sm-2">
<h2>text1</h2>
</div>
<div class="col-sm-8">
<!-- empty -->
</div>
<div class="col-sm-1">
<img src="http://placehold.it/60x60">
</div>
<div class="col-sm-1">
<img src="http://placehold.it/60x60">
</div>
</div>