Have a look at this really simple grid and read the markup used to create it.
<div class="grid-6 gutter-10">
<div class="span-1">.span-1</div>
<div class="span-3">.span-3</div>
<div class="span-1">.span-1</div>
<div class="span-1">.span-1</div>
</div>
Using only three classes, we were able to create this fairly complex grid. The three classes you'll need to learn are grid-n
, gutter-n
and span-n
.
Every grid starts here. The grid class can range from grid-1
to grid-12
. Where n
is the number of columns in your grid.
Columns in a grid can be spaced apart using the gutter-n
class. Possible values for n
are 10
, 20
, 30
, 40
, 50
, 60
or 80
pixels.
Direct children of your grid can span multiple columns. n
can range from 1
to the maximum number of columns in your grid.
1 (100%)
1 (50%)
2 (50%)
1 (33.33%)
2 (33.33%)
3 (33.33%)
1 (25%)
2 (25%)
3 (25%)
4 (25%)
1
2
3
4
5
1
2
3
4
5
6
1
2
3
4
5
6
7
1
2
3
4
5
6
7
8
1
2
3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
9
10
1
2
3
4
5
6
7
8
9
10
11
1
2
3
4
5
6
7
8
9
10
11
12
1
2
3
4
1
2
3
4
1
2
3
4
5
6
1
2
3
4
5
6
1
2
3
4
5
6