I need to achieve the following responsive layout :
Here is the code I have for Desktop devices :
.container {
background-color: red;
display: flex;
}
.sidebar-wrapper {
@media only screen and (min-width: 600px) {
width: 264px;
padding-right: 30px;
}
}
.sidebar-header {
padding: 20px;
background-color: #1CA4FC;
}
.sidebar-footer {
padding: 20px;
background-color: #65D643;
}
.site-content {
padding: 20px;
background-color: #F7B92B;
width: calc(100%);
}
<div class="container">
<div class="sidebar-wrapper">
<div class="sidebar-header">
Sidebar Header
</div>
<div class="sidebar-footer">
Sidebar Footer
</div>
</div>
<div class="site-content">
Site Content
</div>
</div>
How do I create a fluid layout for mobile devices where the flexbox ordering is as per the image above?
