<div class="wrapper">
<div class="first-box">
<h2>Box 1 </h2>
</div>
<div class="second-box">
<h2>Box 2 </h2>
</div>
<div class="third-box">
<h2>Box 3 </h2>
</div>
<div class="fourth-box">
<h2>Box 4 </h2>
</div>
<div class="fifth-box">
<h2>Box 5 </h2>
</div>
<div class="sixth-box">
<h2>Box 6 </h2>
</div>
</div>
.wrapper{
background-color: gainsboro;
display:grid;
border: 1.5px black solid;
grid-template-columns: 2fr 1fr 1fr;
}
.first-box{
padding: 10px;
border: 1px black solid;
text-align: center;
background-color:snow;
}
.second-box{
padding: 10px;
border: 1px black solid;
text-align: center;
background-color: honeydew;
}
.third-box{
padding: 10px;
border: 1px black solid;
text-align: center;
background-color: mintcream;
}
.fourth-box{
padding: 10px;
border: 1px black solid;
text-align: center;
background-color: azure;
}
.fifth-box{
padding: 10px;
border: 1px black solid;
text-align: center;
background-color: aliceblue;
}
.sixth-box{
padding: 10px;
border: 1px black solid;
text-align: center;
background-color: burlywood;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.