1

Is it possible to change row order in Bootstrap 3, using just css?

Example

<div class="row"><div class="col-lg-12">DIV 1</div></div>
<div class="row"><div class="col-lg-12">DIV 2</div></div>
<div class="row"><div class="col-lg-12">DIV 3</div></div>

I want to place DIV 1 under DIV 2 (on displaying page), but I don't want to change order of HTML.

tsnorri
  • 1,966
  • 5
  • 21
  • 29

1 Answers1

1

Check out this related question: Bootstrap 3 changing div order on small screens only

The trick is to use col-*-push-* classes.

Here is another related solution: https://stackoverflow.com/a/12069537/584846

It puts content into table-header-group and table-footer-group

Community
  • 1
  • 1
Brent Washburne
  • 12,904
  • 4
  • 60
  • 82