I am trying to make a 2x2 grid in CSS with 4 divs and i can do it. Heres my code so far. I just want it to be a 4x4 grid on divs that fills the container its in.
.Grades {
width: 100%;
height: 100%;
}
.desktopGrades {
margin: 10px;
box-sizing: border-box;
float: left;
width: 50%;
height: 50%;
clear: none;
}
<div class="grades">
<div class="desktopGrades1">
<h1>Maths</h1>
</div>
<div class="Desktopgrades2">
<h1>Maths</h1>
</div>
<div class="desktopGrades3">
<h1>Maths</h1>
</div>
<div class="desktopGrades4">
<h1>Maths</h1>
</div>
</div>