My Twitter Bootstrap layout consists of two columns structured like this:
<div class="col-md-4 col-sm-6 col-xs-12">
<div class="post">
Content here
</div>
</div>
<div class="col-md-8 col-sm-6 col-xs-12">
<div class="post">
Content here
</div>
</div>
While the layout scales down perfectly to full-width on xs resolution, I am looking to interchange the positions of these columns. In other words, I want the second column in the code to be displayed first and the first column in the code to be displayed second.
I attempted to use col-xs-pull-12
and col-xs-push-12
, but encountered unexpected results with the columns appearing misaligned. Is there a way to swap them using Bootstrap classes? This switch should only take place on xs resolution.