JSFiddle - React, Tailwind, and code Playground
by shahryar saljoughi
HTML
<div class="container">
<div class="box1">.box1</div>
<div class="box2">.box2</div>
<div class="box3">.box3</div>
<div class="box1">.box1</div>
<div class="box2">.box2</div>
</div>
CSS
*{
color: blue;
font-size: 22px;
}
.box1 {
width: 50px;
background-color: black;
border: 1px solid blue;
}
.box2 {
width: 50px;
background-color: red;
border: 1px solid blue;
}
.box3 {
width: 50px;
/* height: 30px; *//*Line A: comment this and both rows will have same height*/
background-color: yellow;
border: 1px solid blue;
}
.container {
display: flex;
width: 160px;
height: 500px;
border: 1px solid red;
align-items: stretch;
flex-wrap:wrap;
}