CSS Grid
<!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>grid templates</title>
</head>
<style>
.grid{
display: grid;
grid-template-rows: 1fr 4fr 6fr ;
grid-auto-rows: 2fr;
grid-template-columns: repeat(5,3fr);
grid-gap: 2rem;
}
.box{
background-color: red;
border: 2px solid black;
}
</style>
<body>
<div class="grid">
<div class="box">This is a box1</div>
<div class="box">This is a box2</div>
<div class="box">This is a box3</div>
<div class="box">This is a box4</div>
<div class="box">This is a box5</div>
<div class="box">This is a box6</div>
<div class="box">This is a box7</div>
<div class="box">This is a box8</div>
<div class="box">This is a box9</div>
<div class="box">This is a box10</div>
<div class="box">This is a box11</div>
<div class="box">This is a box12</div>
<div class="box">This is a box13</div>
<div class="box">This is a box14</div>
<div class="box">This is a box15</div>
<div class="box">This is a box16</div>
<div class="box">This is a box17</div>
<div class="box">This is a box18</div>
<div class="box">This is a box19</div>
<div class="box">This is a box20</div>
</div>
</body>
</html>