book now on khaalipaper Best hindi blog and story website

Bootstrap Push Pull Order Classes with example

How to change the order of DIV in Bootstrap using Bootstrap Push Pull Order Classes. Change column order of using order utility classes as you were able to do it. Using bootStrap's push and pull classes change the order you want it to appear on mobile device or tablet.

Bootstrap swap div order example (resize window to check bellow example)
DIV 1
DIV 2
DIV 3
<div class="row">
  <div class="col-lg-3 order-2 order-lg-12">
    1
  </div>
  <div class="col-lg-6 order-1 order-lg-12">
    2
  </div>
  <div class="col-lg-3 order-3 order-lg-12">
    3
  </div>
</div>

Example of above the change column order on mobile device, on mobile DIV 2 show first column and DIV 1 show second column and DIV 3 at show on last. order-1, order-2, order-3 use this bootStrap utility's to change the order of any column according to requirement.

Change div order responsive mobile

Based on the Bootstrap Grid in the various viewport sizes re-order columns by adding a simple class without using Flexbox. Bootstrap 4 Push Pull Order Classes allow us to change the order of our grid based on requirement. The push and pull classes applied to the Bootstrap classes easily to change the order of column in mobile devices. Change Columns order using Bootstrap Push and Pull Classes are very useful to used to float an element to the left or right on the various viewport sizes. If you have two columns which I want to swap the order of the column use Bootstrap Push and Pull Classes.