I have a couple of divs and I want to push the first div underneath the second on smaller screens, but I've no idea how this can be done.
On viewport > 1000px
<div class="group">
  <div class="first"></div>
  <div class="second"></div>
</div>
On viewport < 1000px I'd like it to be
<div class="group">
  <div class="second"></div>
  <div class="first"></div>
</div>
My CSS:
.group {
  width: 100%;
}
.first,
.second {
  float: left;
  width: 100%;
}
@media (min-width: 1000px) {
  .first,
  .second {
    width: 50%;
  }
}
Is there any possibility to achieve such thing?
Here is jsfiddle