Here is a small code I've done
https://codepen.io/Scipionh/pen/yLabxWx
My requirements are the followings:
- each item has to have the same width (apart from the other block)
- the width of the container is defined and I need to have items touching its border
- I have an unknown number of items (here 8 before the other block but it may be more or less)
- the Other block should span over all the remaining columns in the row it is in
In my example, I would like to have the Other block fitting in the second row.
Basically the culprit here is
grid-column: 2/-1;
as 2 is an hardcoded value.
I KNOW this is a flexbox job as we want to consume the remaining space (and have already done it with it) !
But any idea how to fix my grid solution?
Cheers