JSFiddle - React, Tailwind, and code Playground
by pedro_g_s
HTML
<div class="parent">
<div class="container">
<div class="item1 tomato">1</div>
<div class="item2 tomato">2</div>
<div class="item3 tomato">3</div>
<div class="item4 tomato">4</div>
</div>
</div>
CSS
.parent {
transform: scale(1.59);
transform-origin: top left;
}
.container {
padding: 0;
margin: 0;
width: 300px;
height: 300px;
background-color: blue;
display: grid;
grid-template-columns: 150px 150px 150px;
}
.tomato {
background: tomato;
width: 100%;
height: 100%;
line-height: 150px;
color: white;
font-weight: bold;
font-size: 3em;
text-align: center;
}
.item1 {
}
.item2 {
}
.item3 {
}
.item4 {
}