CSS grid -creation of single row grid that overflows


I am trying to create a grid with only one row, that overflows and hide the overflow.
The goal is that depending on the breakpoint, more grid items will be visible.
The grid has 12 columns and each item should have a span of 4 columns.
My problem is that the remaining items wrap to a new row automatically. I tried to play with ‘grid-auto-flow: column;’, but then the grid items shrink and don’t span 4 columns anymore.
Can anyone please help me out? Thanks in advance!



Source link

Latest articles

Related articles

Leave a reply

Please enter your comment!
Please enter your name here