grid.css
632 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
grid
Every column can be divided into two, three, four and five parts.
Idea from http://code.google.com/p/malo
*/
.main {
margin: 0 auto;
width: 96em; }
.grid {
float: left;
display: inline;
*margin-left: -0.04em; } /* IE margin hack */
.grid .whole {
width: 100%; }
.grid .one_fifth {
width: 20% }
.grid .one_fourth {
width: 25%; }
.grid .one_third {
width: 33.33% }
.grid .two_fifths {
width: 40%; }
.grid .one_half {
width: 50%; }
.grid .three_fifths {
width: 60% }
.grid .two_thirds {
width: 66.66%; }
.grid .three_quarters {
width: 75%; }
.grid .four_fifths {
width: 80%; }