Broke the whole head, I can not how to figure out how to form these blocks.
An example of how should look more here.
The difficulty is that these blocks will be scaled depending on the size of the window, and accordingly the height and width of each block will vary. I tried to position each element by indents, indicated indents in percent, but when the window is enlarged / reduced, everything falls apart. I thought to make position: absolute and put positions on JS, but I figured it would be a lot of lines.
I will be glad to any ideas.