I'm trying to calculate the left and right position of a grid layout.
This is the information I have:
ContainerWidth: 960px; GutterWidth:20px; (GR + GL) NumberOfColumns:16; (C * 16) ColumnWidth:40px (C)
I need to calculate their positions respective to the ContainerWidth as a percentage:
Example for one loop, I should be able to get these values:
GL: start 0% - end 1.04167%; C : start 1.04167% - end 6.25%; GR: start 6.25% - end 7.29167%
so the above would be continued for the length of (NumberOfColumns)
However, I'm not even sure if the above math is correct, how could I calculate this?