A grid
I have a grid with boxes. The total grid is 1040 wide.
Number of boxes and spaces
I have 3 boxes an 2 spaces between them.
Question
What are the number of pixels between the boxes, the spaces? I want to come as close to space number 15 as possible. The problem I have is that the sum is never exact 1040.
The space don't have to be 15 but every box needs to be equal in width.
|Box1|Space|Box2|Space|Box3|
I tried to set the space to 15 but ( 1040 - ( 15 x 2 ) ) / 3 = 336,667
I want the box to be a whole number like 336. The number of 15 can change close to it up or down.