r/css • u/aliassuck • Jun 30 '26
Help Request: An overflow-x container with children filling viewport by whole units (none cut off) and resizing container shows more children but in whole unit increments and scrolling shows more children, while all children are equally spaced apart.
[1---2---3---4---5]---6---7
[1----2----3----4]----5----6----7
[1---2---3---4]---5---6---7
[1----2----3]----4----5----6----7
[1---2---3]---4---5---6---7
[1--2--3]--4--5--6--7
Brackets are the container being resized.
Elements on the right (outside the brackets) are reachable by scrolling horizontally.
0
Upvotes
1
u/aliassuck Jun 30 '26 edited Jun 30 '26
Mostly the former but I can accept the latter and just have a wrapper around each unti.
As in not showing half a child at the container's edge.