I need help arranging a 5x10 grid within a larger box with equal spacing between all the boxes. However, depending on the size of the smaller divs, there could be six in a row. The same applies for justify-content and align-content after specifying in pixels. When I try to create space using padding or margin, the spaces end up overlapping between the boxes (6px if given as 3px). How can I solve this issue?
<!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>Assignment - 1</title>
<link rel="stylesheet" href="./assignment1.css">
</head>
<body>
<div class="box">
...
This is my current result: https://i.sstatic.net/zJxl4.png
The desired result is shown below: https://i.sstatic.net/Nw6Np.png