twitter/bootstrap — Issue #1412: [2.0-wip] Grid system explanation
Author: Merg1255
Created: 2012-01-30 00:26:28+00:00
State: open

Hi everyone. Could someone help me understand this a bit?
How can you be able to set all these values when customizing the grid:
@gridColumns, @gridColumnWidth, @gridGutterWidth, @siteWidth??

- If I want to have a pure 1170px site (for span12) with 12 columns and gutter of 30px, then I can set :
@gridColumns=12 and @siteWidth=1170px and @gridGutterWidth=30, and it has to automatically generate the @gridColumnWidth=70px

- If I want to have a pure 1170px site (for span12) with 12 columns of 70px each, then I can set:
@gridColumns=12 and @siteWidth=1170px and @gridColumnWidth=70px, and it has to automatically generate the gutter to be 30px

The above mean the following:
---------------------------------------------
1. If i set 3 of the 4 variables, i should NOT be able to set the 4th one. For example, if I set the columns, columnwidth, and columngutter, i should NOT be able to set the sitewidth.

2. For example, in a usecase all I know is that I want to have 16 columns of 50px each and a total of 1170px (so span16=1170px). This means the gutter will be 24.66667px. Could the script calculate the gutter automatically?

Thanks