On my page layout with Bootstrap 3.2.0, I have set up the following structure:
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">1</div>
<div class="col-lg-5 col-md-5 col-sm-6 col-sm-push-6 col-xs-12">2</div>
<div class="col-lg-3 col-md-3 col-sm-6 col-sm-pull-6 col-xs-12">3</div>
Everything looks perfect on small screens as shown below:
-----------------------
| 1 |
------------------------
| 3 | 2 |
------- ------- -------
However, even though I only want to use col-sm-pull-*
and col-sm-push-*
for small screens, these classes seem to affect medium and large screens too.
If I try using col-sm-push/pull-* & col-xs-push/pull-*, they end up affecting large and medium screens, which is not my intention.
Medium screen and Large screen Issue:
What I want: What I get:
------- --------- ----- ------- ----- ---------
| 1 | 2 | 3 | | 1 | 3 | 2 |
------- --------- ----- ------- ----------
So, how can I ensure that Push/pull columns are only applied to smaller screens?
What is causing this issue? How can I resolve it?
Your assistance would be greatly appreciated.