I want to create a Flex Box Grid
which displays elements in a row
and wraps
them when the maximum size is exceeded. I am able to create grid
without overlaying flex box items
.
https://jsfiddle.net/2ykn7jLs/1/
However, I want the small rectangles to overlay the big ones. They should be placed in the top left corner of the big rectangle. Whenever I use positioning
such as absolute
or relative
it destroys the grid
though. How would I overlay elements in a flex box grid
?