Try incorporating Bootstraps' .col-md-push-*
and .col-md-pull-*
classes into your layout.
To learn more about this, visit: http://getbootstrap.com/css/#grid-column-ordering
Here is an example:
<div class="container">
<div class="row">
<div class="col-md-9 col-md-push-3">.col-md-9 .col-md-push-3</div>
<div class="col-md-3 col-md-pull-9">.col-md-3 .col-md-pull-9</div>
</div>
</div>
CODEPEN DEMO
If you need a full width column example using push/pull helper classes, check out this JS bin:
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-push-6">
<p>test2</p>
</div>
<div class="col-xs-12 col-sm-6 col-sm-pull-6">
<p>test1</p>
</div>
</div>
https://jsbin.com/gazipa/2/edit?html,css,output
You can also utilize CSS transform to alter the order at a specific viewport breakpoint:
@media (max-width: 767px) {
.row.reorder-xs {
/*add necessary prefixes*/
transform: rotate(180deg);
direction: rtl; /* Adjust horizontal alignment */
}
.row.reorder-xs > [class*="col-"] {
/*add necessary prefixes*/
transform: rotate(-180deg);
direction: ltr; /* Adjust horizontal alignment */
}
}
https://jsbin.com/gazipa/3/edit?html,css,output