-
Notifications
You must be signed in to change notification settings - Fork 3
/
example-12.html
151 lines (120 loc) · 4.85 KB
/
example-12.html
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Deco Grid System</title>
<style type="text/css" media="screen">
/* These classes are just here to make the demo have some color/whitespace.
Not part of the grid system. */
* { margin:0; padding: 0; }
body { font: 0.825em Helvetica, Arial, sans-serif; line-height: 1.5em;}
div.row { margin-top: 1em inherit; margin-bottom: 1em; padding-left: 10px; }
div.cell {text-align: center; padding: 1em 0; background-color: #ccc; }
h1, h2 { letter-spacing: -0.05em; margin: 10px; text-align: justify; line-height: 1.25em;}
/* Uncomment the below line to test the fixed-width version, 60em = 960px: */
/* body { width: 960px; margin: 0 auto;} */
/* Another approach is to make sure the page never exceeds 960px, but scales down */
body { max-width: 960px; margin: 0 auto;}
/* Uncomment the below to show the grid background, only makes sense at 960px */
div.grid-background { background: url(images/12-col.png) repeat scroll 0 0 #eef; padding: 1em 0; }
</style>
<link rel="stylesheet" href="decogrids-12.css" type="text/css" charset="utf-8" />
</head>
<body>
<div class="grid-background"> <!-- Dummy element to show the grid background -->
<h1>Basic 12-column grid demo, showing some common combinations.
Lock page width to 960px for a good fixed version,
where each cell will be 60px with 20px column margins.</h1>
<div class="row">
<div class ="cell width-1 position-0">01</div>
<div class ="cell width-1 position-1">02</div>
<div class ="cell width-1 position-2">03</div>
<div class ="cell width-1 position-3">04</div>
<div class ="cell width-1 position-4">05</div>
<div class ="cell width-1 position-5">06</div>
<div class ="cell width-1 position-6">07</div>
<div class ="cell width-1 position-7">08</div>
<div class ="cell width-1 position-8">09</div>
<div class ="cell width-1 position-9">10</div>
<div class ="cell width-1 position-10">11</div>
<div class ="cell width-1 position-11">12</div>
</div>
<div class="row">
<div class ="cell width-2 position-0">01</div>
<div class ="cell width-2 position-2">02</div>
<div class ="cell width-2 position-4">03</div>
<div class ="cell width-2 position-6">04</div>
<div class ="cell width-2 position-8">05</div>
<div class ="cell width-2 position-10">06</div>
</div>
<div class="row">
<div class ="cell width-3 position-0">01</div>
<div class ="cell width-3 position-3">02</div>
<div class ="cell width-3 position-6">03</div>
<div class ="cell width-3 position-9">04</div>
</div>
<div class="row">
<div class ="cell width-4 position-0">01</div>
<div class ="cell width-4 position-4">02</div>
<div class ="cell width-4 position-8">03</div>
</div>
<div class="row">
<div class ="cell width-5 position-0">01</div>
<div class ="cell width-2 position-5">02</div>
<div class ="cell width-5 position-7">03</div>
</div>
<div class="row">
<div class ="cell width-4 position-0">01</div>
<div class ="cell width-8 position-4">02</div>
</div>
<div class="row">
<div class ="cell width-6 position-0">01</div>
<div class ="cell width-6 position-6">02</div>
</div>
<div class="row">
<div class ="cell width-12 position-0">01</div>
</div>
<h1>Convenience classes — ¼, ½, ¾ widths and ¼, ½, ¾ positions.
Not strictly necessary, but included for your use if you want them.</h1>
<div class="row">
<div class ="cell width-1:2 position-0">01</div>
<div class ="cell width-1:2 position-1:2">02</div>
</div>
<div class="row">
<div class ="cell width-1:4 position-0">01</div>
<div class ="cell width-1:4 position-1:4">02</div>
<div class ="cell width-1:4 position-1:2">03</div>
<div class ="cell width-1:4 position-3:4">04</div>
</div>
<div class="row">
<div class ="cell width-1:4 position-0">01</div>
<div class ="cell width-1:2 position-1:4">02</div>
<div class ="cell width-1:4 position-3:4">04</div>
</div>
<div class="row">
<div class ="cell width-1:4 position-0">01</div>
<div class ="cell width-3:4 position-1:4">02</div>
</div>
<div class="row">
<div class ="cell width-3:4 position-0">01</div>
<div class ="cell width-1:4 position-3:4">02</div>
</div>
<h1>Convenience classes for ⅓, ⅔ widths and ⅓, ⅔ positions.
Not strictly necessary, but included for your use if you want them.</h1>
<div class="row">
<div class ="cell width-1:3 position-0">01</div>
<div class ="cell width-1:3 position-1:3">02</div>
<div class ="cell width-1:3 position-2:3">03</div>
</div>
<div class="row">
<div class ="cell width-1:3 position-0">01</div>
<div class ="cell width-2:3 position-1:3">02</div>
</div>
<div class="row">
<div class ="cell width-2:3 position-0">01</div>
<div class ="cell width-1:3 position-2:3">02</div>
</div>
<p style="text-align: center">Created by <a href="http://limi.net/">Alexander Limi</a>. Placed in the Public Domain.</p>
</div>
</body>
</html>