JSFiddle - React, Tailwind, and code Playground
HTML
<div class="container">
<main>
1
</main>
<aside>
2</aside>
</div>
CSS
body {
font-family: 'RobotoLight','Open Sans', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
background-color: #f8f8f8;
font-smoothing: always;
display:-webkit-flex;
display:-ms-flexbox;
display:flex;
-webkit-flex-direction:column;
-ms-flex-direction:column;
flex-direction:column;
}
p {
font-family: 'RobotoRegular','Open Sans', sans-serif;
font-size: 1.4rem;
color: rgba(0, 0, 0, 0.87);
}
.container {
min-height: 100vh;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-ms-flex-direction: row;
-webkit-flex-direction: row;
flex-direction: row;
-ms-flex-wrap: nowrap;
-webkit-flex-wrap: nowrap;
flex-wrap: nowrap;
margin-left: auto;
margin-right: auto;
-ms-flex-pack: justify;
-webkit-justify-content: space-between;
justify-content: space-between;
}
@media only screen and (max-width: 600px) {
.container {
width: 100%;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
margin-top: 10px;
}
}
@media only screen and (min-width: 601px) and (max-width: 959px) {
.container {
width: 750px;
-ms-flex-direction: column;
-webkit-flex-direction: column;
flex-direction: column;
margin-top: 10px;
}
}
@media only screen and (min-width: 960px) and (max-width: 1279px) {
.container {
width: 970px;
-ms-flex-direction: row;
-webkit-flex-direction: row;
flex-direction: row;
margin-top: 10px;
}
}
@media only screen and (min-width: 1280px) and (max-width: 1599px) {
.container {
width: 1200px;
-ms-flex-direction: row;
-webkit-flex-direction: row;
flex-direction: row;
margin-top: 50px;
}
}
@media only screen and (min-width: 1600px) and (max-width: 1920px) {
.container {
width: 1200px;
-ms-flex-direction: row;
...