I have two div rows. for which in Desktop it should be like
A
B
and for mobile it should be like
B
A
Is there a way to do it in pull push feature of bootstrap 3?
In below demo you will see a blue and red strip.
In desktop red strip should be on top where as in mobile blue strip should be on the top.
HTML
<div class="row">
<div class="col-md-12 row1 clearfix" >
<div class="col-md-3 col-xs-6 col-md-push-6">A</div>
<div class="col-md-3 col-xs-6 col-md-push-6">B</div>
<div class="col-md-6 col-xs-12 col-md-pull-6">C</div>
</div>
<div class="col-md-12 row2 clearfix">D</div>
</div>
CSS
.row1 {
background:red;
}
.row2 {
background:blue;
}
According to me Its a bit difficult by using PILL/PUSH classes. I have used Hidden/Visible classes in a project for same functionality.
JSFiddle link : http://jsfiddle.net/Sharan_thethy/XRdt8/
I hope this will help you.
CODE: