JSFiddle - React, Tailwind, and code Playground
by jessuni
HTML
<div class="grid">
<div class="row">
<div class="cell">
<img src="https://i.typlog.com/_debug/blog/8413063540_96315.jpg" class="draggable_handle img-VYtI3">
</div>
<div class="cell">
<img src="https://i.typlog.com/_debug/blog/8413063540_96315.jpg" class="draggable_handle img-VYtI3">
</div>
<div class="cell">
<img src="https://i.typlog.com/_debug/blog/8413063540_96315.jpg" class="draggable_handle img-VYtI3">
</div>
</div>
<div class="row">
<div class="cell">
<img src="https://i.typlog.com/_debug/blog/8413063540_96315.jpg" class="draggable_handle img-VYtI3">
</div>
<div class="cell">
<img src="https://i.typlog.com/_debug/blog/8413063540_96315.jpg" class="draggable_handle img-VYtI3">
</div>
<div class="cell">
<img src="https://i.typlog.com/_debug/blog/8413063540_96315.jpg" class="draggable_handle img-VYtI3">
</div>
</div>
</div>
CSS
.grid {
display: flex;
flex-flow: column nowrap;
}
.row {
border: 1px solid gray;
margin: 10px 0;
display: flex;
max-height: 150px;
width: 100%;
}
.cell {
padding: 3px;
margin: 3px;
background: #eee;
display: flex;
min-height: 100px;
flex: 1 1 auto;
align-items: flex-start;
}
img {
max-width: 100%;
object-fit: cover;
}