<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="style.css"/>
</head>
<body>

<!-- 💛 -->
<div class="container">
    <div class="box">A</div>
    <div class="box">B</div>
    <div class="box">C</div>
    <div class="box">D</div>
</div>


</body>
</html>
.container{
    display:grid;
    /*grid-template-rows: 100px 100px 100px;*/
    grid-template-rows:repeat(3,100px);
    /*grid-template-columns: 100px 100px;*/
    grid-template-columns: repeat(2,100px);
    border: 3px solid lightgray;
}

/* 💛 */
.box{
    width:5rem;
    height:5rem;
    background-color:gold;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.