<div class="container">
    <div class="item">1</div>
    <div class="item">2</div>
    <div class="item">3</div>
    <div class="item">4</div>
    <div class="item">5</div>
</div>
.container {
    display: grid;
    width: 400px;
    height: 150px;
    grid-template-columns: repeat(3, 1fr);  
    grid-template-rows: repeat(4, 1fr);
}

.item:nth-child(1) {
    background-color: #fff001;
    grid-column: 1 / 4;
}

.item:nth-child(2) {
    background-color: #00a5e7;
    grid-column: 1;
    grid-row: span 3;
}

.item:nth-child(3) {
    background-color: #00984b;
    grid-column: 2 / 4;
    grid-row: span 2;
}

.item:nth-child(4) {
    background-color: #cd5638;
}

.item:nth-child(5) {
    background-color: #fff001;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.