Hi
I have been building a grid element based on 100vw. my grid uses repeat(8,calc(100vw/8)) as the column and row layout values. This is fine if i have both gap width and gap height to zero. I would like to introduce a 5px gap between cells but this then pushes the cells outside the width of the view window. To compensate for this i decided to remove 40px from the calculation to account for 5x8px created by the gaps. I attempted to use the following repeat(8,calc((100vw-40px)/8)) which didn’t work so i tried repeat(8,calc(100vw-40px/8)). Can you advise how i should adjust the calculation to remove the 40px added to the grid by the gap width.
many thanks
Richard