I am trying to assemble a flexbox layout - for the purposes of this question I will call it a “square five blocks” layout (see image), but I ran into difficulties, since all the experiments I tried did not wrap correctly.
I saw the same layout that was made using float, but I was hoping it would be a bit later, and use a more modern method - hence flexbox. I tried to search for this template, but there is no consistent name for it, so searching for similar examples proves its strength.
I also use view units to ensure that the blocks remain absolutely square, all based on viewport width units (vw).
div { width: 25vw; height: 25vw; }
div:first-of-type { width: 50vw; height: 50vw; }
Key features are that all blocks must be square; the first block must be the size of the remaining four combined. Has anyone seen or worked on such a layout before?

Thank!!
source
share