These things are everywhere!!
[ReadingsJQM.git] / snippets / grids.html
1 <!doctype html>
2 <html>
3 <head>
4         <meta charset="utf-8">
5         <meta name="viewport" content="width=device-width, initial-scale=1">
6         <title> jQuery Mobile Boilerplate </title>
7         <link rel="stylesheet"  href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" />
8
9         <!-- if you have a custom theme, add it here -->
10         <link rel="stylesheet"  href="themes/jQuery-Mobile-Boilerplate.css" />
11
12         <link rel="stylesheet" href="css/custom.css" />
13
14         <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
15         <script src="js/application.js"></script>
16         <script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
17         
18 </head> 
19 <body> 
20         <div data-role="page">
21
22                 <div data-role="header">
23                         <a href="../index.html" data-icon="home">Home</a>
24                         <h1>Grids</h1>
25                 </div>
26
27                 <div data-role="content">
28
29
30
31
32
33 <h2>2 Column Grid</h2>
34
35 <div class="ui-grid-a">
36         <div class="ui-block-a"><button type="submit" data-theme="c">Cancel</button></div>
37         <div class="ui-block-b"><button type="submit" data-theme="b">Submit</button></div>         
38 </div>
39
40 <h2>3 Column Grid</h2>
41
42 <div class="ui-grid-b">
43         <div class="ui-block-a ui-bar-d" style="height:50px">Block A</div>
44         <div class="ui-block-b ui-bar-d" style="height:50px">Block B</div>
45         <div class="ui-block-c ui-bar-d" style="height:50px">Block C</div>
46 </div>
47
48 <h2>4 Column Grid</h2>
49
50 <div class="ui-grid-c">
51         <div class="ui-block-a ui-bar-d" style="height:50px">Block A</div>
52         <div class="ui-block-b ui-bar-d" style="height:50px">Block B</div>
53         <div class="ui-block-c ui-bar-d" style="height:50px">Block C</div>
54         <div class="ui-block-d ui-bar-d" style="height:50px">Block D</div>
55 </div>
56
57 <h2>5 Column Grid</h2>
58
59 <div class="ui-grid-d">
60         <div class="ui-block-a ui-bar-d" style="height:50px">A</div>
61         <div class="ui-block-b ui-bar-d" style="height:50px">B</div>
62         <div class="ui-block-c ui-bar-d" style="height:50px">C</div>
63         <div class="ui-block-d ui-bar-d" style="height:50px">D</div>
64         <div class="ui-block-e ui-bar-d" style="height:50px">E</div>
65 </div>
66
67 <h2>Multi-row grids</h2>
68
69 <div class="ui-grid-a">
70         <div class="ui-block-a ui-bar-d" style="height:50px">A</div>
71         <div class="ui-block-b ui-bar-d" style="height:50px">B</div>
72         <div class="ui-block-a ui-bar-d" style="height:50px">A</div>
73         <div class="ui-block-b ui-bar-d" style="height:50px">B</div>
74 </div>
75
76
77
78
79
80                 </div>
81                 
82                 <div data-role="footer" data-theme="c">
83                         <p>&copy; 2012 - jQuery Mobile Boilerplate</p>
84                 </div>  
85                 
86         </div>
87 </body>
88 </html>