<div class="box">
<div>1</div>
<div class="big">2</div>
<div class="big">3</div>
<div>4</div>
<div>5</div>
<div>6</div>
<div>7</div>
<div>8</div>
<div>9</div>
<div>10</div>
</div>
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
.box {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-gap: 4px;
grid-auto-flow: dense;
}
.box > div {
background-color: tomato;
color: white;
font-size: 1.5em;
padding: 18px;
width: 20vw;
text-align: center;
font-family: monospace;
}
.box > div.big {
width: 40vw;
grid-column-end: span 2;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.