I have a layout with two columns, each containing two blocks
Currently, the mobile order is:
1 2 3 4But I want it to be:
3 1 2 4I attempted to use CSS grid but I am unsure how to move block 3 out of column 2.
Here's the code snippet:
body {
padding-top: 50px;
}
.block {
padding: 40px;
text-align: center;
}
.y{
background:yellow;
}
.r{
background:red;
}
.b{
background:lightblue;
}
.g{
background:lightgreen;
}
@media only screen and (max-width: 991px) {
.container {
display: grid;
background-color: pink;
}
}
Another question: Can we achieve this ordering using CSS compatible with IE11? Since 'display:grid' is not supported by IE.