JSFiddle - React, Tailwind, and code Playground
by Tony Realovich
HTML
<div class="flex-container">
<div class="content blue">
</div>
<div class="sidebar green"></div>
<div class="sidebar orange"></div>
</div>
CSS
.flex-container {
display: flex;
flex-direction: row;
justify-content: space-between;
flex-wrap: wrap;
}
.content {
height: 200px;
width: 60%;
}
.sidebar {
height: 95px;
width: 40%;
}
.sidebar:first-child {
margin-bottom: 10px;
}
.blue {
background-color: #19B2FF;
}
.green {
background-color: #30BF30;
order: 0;
}
.orange {
background-color: #FF6D24;
}
@media (min-width: 1000px) {
.flex-container {
flex-wrap: nowrap;
}
.sidebar {
width: 20%;
}
.green {
order: -1;
}
}