There is one div that is stretched to the full width and height of the screen. It is necessary to fill this div with its children, square, div'ami, so that it looks like a grid like in a notebook in a cell. I ask for your help.

    1 answer 1

    If you need a "notebook in a cage" form, then it is not necessary to fill the page with thousands of <div> s. This is easily done using CSS:

     html, body { height: 100%; padding: 0; margin: 0; background: repeating-linear-gradient(to right, transparent, transparent 20px, #555 21px), repeating-linear-gradient(to bottom, transparent, transparent 20px, #555 21px); }