I have task to do in GRID css (the task main goal is to do this in GRID, not flex etc). I have two columns in my GRID, every column has own divs, but it is not important, because I already did everything. Important thing is to make RWD. In the RWD I need combina both columns to one (already did) and reverse them. How to reverse column B with all divs to be at the top of new column??
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
.row {
float: left;
width: 49%;
}
.column {
border: 1px solid red;
height: 40px;
}
@media only screen and (max-width: 600px) {
.row {
width: 70%;
}
}
<div class="row">
<div class="column">A1</div>
<div class="column">A2</div>
</div>
<div class="row">
<div class="column">B1</div>
<div class="column">B2</div>
</div>