-
Notifications
You must be signed in to change notification settings - Fork 4
/
grid_flexible.html
89 lines (76 loc) · 3.49 KB
/
grid_flexible.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
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<title>Fluid CSS Grid Example | LIQUID GRID</title>
<meta name="keywords" content="CSS grid framework, responsive css grid">
<meta name="description" content="Liquid Grid is a simple CSS grid framework. Liquid grid works with mobile device and is designed to be a responsive css grid.">
<meta name="author" content="Alexander Wolfe">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="css/grids.css">
<link rel="stylesheet" href="css/grid_test.css">
<!-- http://stackoverflow.com/questions/18500836/should-i-use-max-device-width-or-max-width -->
<!-- http://stackoverflow.com/questions/10953242/how-to-create-media-query-that-work-for-both-device-width-and-width?rq=1 -->
<!--[if lt IE 9]><script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script><![endif]-->
</head>
<body>
<article>
<h1>Default Fluid Behavior</h2>
<section class="grid-fluid">
<span class="c1">1</span>
<span class="c1">1</span>
<span class="c1">1</span>
<span class="c1">1</span>
<span class="c1">1</span>
<span class="c1">1</span>
<span class="c1">1</span>
<span class="c1">1</span>
<span class="c1">1</span>
<span class="c1">1</span>
<span class="c1">1</span>
<span class="c1">1</span>
<div class="clear"></div>
<span class="c2">2</span>
<span class="c2">2</span>
<span class="c2">2</span>
<span class="c2">2</span>
<span class="c2">2</span>
<span class="c2">2</span>
<div class="clear"></div>
<span class="c3">3</span>
<span class="c3">3</span>
<span class="c3">3</span>
<span class="c3">3</span>
<div class="clear"></div>
<span class="c4">4</span>
<span class="c4">4</span>
<span class="c4">4</span>
<div class="clear"></div>
<span class="c6">6</span>
<span class="c6">6</span>
<div class="clear"></div>
<span class="c12">12</span>
</section>
</article>
<article>
<h1>Fluid Behavior Using Phone and Tablet Classes</h2>
<p>Notice that if you omit tablet, the default fluid behavior will kick in (your column will become full width). If you narrow you viewport to about tablet width (~480w-900w), you should see the first four columns exhibiting this below.</p>
<p>So the "take-away" is if you choose to use phone-X for more control, you will likely want to also use tablet-X. Using phone-X and tablet-X together will likely result in a more predictable transition that you're expecting.</p>
<section class="grid-fluid">
<span class="c1 phone-c6"><small>1/small6</small></span>
<span class="c1 phone-c6"><small>1/small6</small></span>
<span class="c1 phone-c6"><small>1/small6</small></span>
<span class="c1 phone-c6"><small>1/small6</small></span>
<span class="c1 tablet-c2"><small>1/tab2</small></span>
<span class="c1 tablet-c2"><small>1/tab2</small></span>
<span class="c1 tablet-c2"><small>1/tab2</small></span>
<span class="c1 tablet-c2"><small>1/tab2</small></span>
<span class="c1 tablet-c4"><small>1/tab4</small></span>
<span class="c1 tablet-c4"><small>1/tab4</small></span>
<span class="c1 tablet-c4 phone-c6"><small>1/t4/s6</small></span>
<span class="c1 tablet-c4 phone-c6"><small>1/t4/s6</small></span>
<div class="clear"></div>
</section>
</article>
</body>
</html>