JSFiddle - React, Tailwind, and code Playground
by Terry Mun
HTML
<div class="container">
<div class="first"></div>
<div class="second"></div>
</div>
CSS
.container {
width:100%;
display: flex;
flex-direction: column;
flex-wrap: wrap;
justify-content: space-between;
height: 100px;
}
.first {
background-color: yellow;
width: 200px;
height: 100px;
align-self: flex-start;
}
.second {
background-color: blue;
width: 200px;
height: 100px;
align-self: flex-end;
}
@media screen and (max-width: 400px) {
.container {
height: 200px;
}