-
-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathindex.html
172 lines (152 loc) · 6.44 KB
/
index.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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=640">
<title>ungrid - the simplest responsive css grid</title>
<link href="ungrid.min.css" rel="stylesheet">
<link href="docs.css" rel="stylesheet">
</head>
<body>
<div class="header">
<h1><a href="//github.com/chrisnager/ungrid">ungrid</a></h1>
<p>by <a href="//twitter.com/chrisnager">@chrisnager</a></p>
<h2>the simplest responsive css grid</h2>
</div>
<div class="info">
<div class="info__inner">
<p><b>ungrid</b> is a responsive, table-based CSS grid system. To use, simply put as many <code>.col</code>s as you wish in your <code>.row</code>s and the <code>.col</code>s will automatically be evenly spaced. This allows you to roll your own simple grids.</p>
<p><iframe src="//ghbtns.com/github-btn.html?user=chrisnager&repo=ungrid&type=watch&size=large" allowtransparency="true" frameborder="0" scrolling="0" width="77px" height="30px"></iframe></p>
<hr>
<p>ungrid.css (97 bytes minified):</p>
<pre><code>@media (min-width: 30em) {
.row { width: 100%; display: table; table-layout: fixed; }
.col { display: table-cell; }
}</code></pre>
</div>
</div>
<div class="row">
<div class="col">⚜</div>
</div>
<div class="row">
<div class="col">⚜</div>
<div class="col">⚜</div>
</div>
<div class="row">
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
</div>
<div class="row">
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
</div>
<div class="row">
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
</div>
<div class="row">
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
</div>
<div class="row">
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
</div>
<div class="row">
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
</div>
<div class="row">
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
</div>
<div class="row">
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
<div class="col">⚜</div>
</div>
<div class="info">
<div class="info__inner">
<h2>Need specific column widths?</h2>
<p>Go for it. Both fixed and percentage base widths work perfectly. You can even use them together. The remaining columns will take up the rest of the available space.</p>
</div>
</div>
<div class="row">
<div class="col" style="width:80%">80%</div>
<div class="col">⚜</div>
</div>
<div class="row">
<div class="col" style="width:40%">40%</div>
<div class="col" style="width:20%">20%</div>
<div class="col" style="width:40%">40%</div>
</div>
<div class="row">
<div class="col">⚜</div>
<div class="col" style="width:425px">425px</div>
</div>
<div class="row">
<div class="col" style="width:15%">15%</div>
<div class="col" style="width:200px">200px</div>
<div class="col">⚜</div>
<div class="col" style="width:25%">25%</div>
</div>
<div class="footer">
<p><b>ungrid</b> on <a href="//github.com/chrisnager/ungrid">github</a> · crafted by <a href="//twitter.com/chrisnager">@chrisnager</a> · try it out on <a href="//codepen.io/chrisnager/pen/ypokv">codepen</a></p>
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-48485384-1', 'chrisnager.github.io');
ga('send', 'pageview');
</script>
</body>
</html>