Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reversing stacking order in bootstrap 3?

Before in bootstrap 2 you could reverse the stacking order in the grids by reversing the floats.

In bootstrap 3 this does not seem to work. Can anyone tell me the solutions for bootstrap 3?

Any assistance would be appreciated.

like image 754
Jamie Keith French Avatar asked Aug 29 '13 12:08

Jamie Keith French


1 Answers

Use the .col-md-push-* and .col-md-pull-* modifier classes., see: http://getbootstrap.com/css/#grid-column-ordering

example:

<div class="container"> 
<div class="col-sm-5 col-sm-push-7" style="height:50px;background-color:green;">first right</div>
<div class="col-sm-7 col-sm-pull-5" style="height:100px;background-color:red;">second left</div>
</div>  
like image 139
Bass Jobsen Avatar answered Nov 15 '22 20:11

Bass Jobsen