You should make the percentage grid a separate container, and place the list items inside the grid, then fix the width of its internal infrastructure. The margin will naturally change with the change of the large container, otherwise the spacing will be fixed. Then everything is solved, no need for flex layout or anything like that
You deserve flex layout
One more thing to add, written in JS.
You should make the percentage grid a separate container, and place the list items inside the grid, then fix the width of its internal infrastructure. The margin will naturally change with the change of the large container, otherwise the spacing will be fixed. Then everything is solved, no need for flex layout or anything like that