update bootstrap to 3.0.0-rc2
[bootswatch] / bower_components / bootstrap / examples / grid / index.html
1 <!DOCTYPE html>
2 <html lang="en">
3   <head>
4     <meta charset="utf-8">
5     <meta name="viewport" content="width=device-width, initial-scale=1.0">
6     <meta name="description" content="">
7     <meta name="author" content="">
8     <link rel="shortcut icon" href="../../assets/ico/favicon.png">
9
10     <title>Grid Template for Bootstrap</title>
11
12     <!-- Bootstrap core CSS -->
13     <link href="../../dist/css/bootstrap.css" rel="stylesheet">
14
15     <!-- Custom styles for this template -->
16     <link href="grid.css" rel="stylesheet">
17   </head>
18
19   <body>
20     <div class="container">
21
22       <div class="page-header">
23         <h1>Bootstrap grid examples</h1>
24         <p class="lead">Basic grid layouts to get you familiar with building within the Bootstrap grid system.</p>
25       </div>
26
27       <h3>Three equal columns</h3>
28       <p>Get three equal-width columns <strong>starting at desktops and scaling to large desktops</strong>. On mobile devices, tablets and below, the columns will automatically stack.</p>
29       <div class="row">
30         <div class="col-md-4">.col-md-4</div>
31         <div class="col-md-4">.col-md-4</div>
32         <div class="col-md-4">.col-md-4</div>
33       </div>
34
35       <h3>Three unequal columns</h3>
36       <p>Get three columns <strong>starting at desktops and scaling to large desktops</strong> of various widths. Remember, grid columns should add up to twelve for a single horizontal block. More than that, and columns start stacking no matter the viewport.</p>
37       <div class="row">
38         <div class="col-md-3">.col-md-3</div>
39         <div class="col-md-6">.col-md-6</div>
40         <div class="col-md-3">.col-md-3</div>
41       </div>
42
43       <h3>Two columns</h3>
44       <p>Get two columns <strong>starting at desktops and scaling to large desktops</strong>.</p>
45       <div class="row">
46         <div class="col-md-8">.col-md-8</div>
47         <div class="col-md-4">.col-md-4</div>
48       </div>
49
50       <h3>Full width, single column</h3>
51       <p class="text-warning">No grid classes are necessary for full-width elements.</p>
52
53       <hr>
54
55       <h3>Two columns with two nested columns</h3>
56       <p>Per the documentation, nesting is easy—just put a row of columns within an existing row. This gives you two columns <strong>starting at desktops and scaling to large desktops</strong>, with another two (equal widths) within the larger column.</p>
57       <p>At mobile device sizes, tablets and down, these columns and their nested columns will stack.</p>
58       <div class="row">
59         <div class="col-md-8">
60           .col-md-8
61           <div class="row">
62             <div class="col-md-6">.col-md-6</div>
63             <div class="col-md-6">.col-md-6</div>
64           </div>
65         </div>
66         <div class="col-md-4">.col-md-4</div>
67       </div>
68
69       <hr>
70
71       <h3>Mixed: mobile and desktop</h3>
72       <p>The Bootstrap 3 grid system has four tiers of classes: xs (phones), sm (tablets), md (desktops), and lg (larger desktops). You can use nearly any combination of these classes to create more dynamic and flexible layouts.</p>
73       <p>Each tier of classes scales up, meaning if you plan on setting the same widths for xs and sm, you only need to specify xs.</p>
74       <div class="row">
75         <div class="col-xs-12 col-md-8">.col-xs-12 .col-md-8</div>
76         <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
77       </div>
78       <div class="row">
79         <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
80         <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
81         <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
82       </div>
83       <div class="row">
84         <div class="col-xs-6 col-md-6">.col-xs-6 .col-md-6</div>
85         <div class="col-xs-6 col-md-6">.col-xs-6 .col-md-6</div>
86       </div>
87
88       <hr>
89
90       <h3>Mixed: mobile, tablet, and desktop</h3>
91       <p></p>
92       <div class="row">
93         <div class="col-xs-12 col-sm-8 col-lg-8">.col-xs-12 .col-lg-8</div>
94         <div class="col-xs-6 col-sm-4 col-lg-4">.col-xs-6 .col-lg-4</div>
95       </div>
96       <div class="row">
97         <div class="col-xs-6 col-sm-4 col-lg-4">.col-xs-6 .col-sm-4 .col-lg-4</div>
98         <div class="col-xs-6 col-sm-4 col-lg-4">.col-xs-6 .col-sm-4 .col-lg-4</div>
99         <div class="col-xs-6 col-sm-4 col-lg-4">.col-xs-6 .col-sm-4 .col-lg-4</div>
100       </div>
101       <div class="row">
102         <div class="col-xs-6 col-sm-6 col-lg-6">.col-xs-6 .col-sm-6 .col-lg-6</div>
103         <div class="col-xs-6 col-sm-6 col-lg-6">.col-xs-6 .col-sm-6 .col-lg-6</div>
104       </div>
105
106     </div> <!-- /container -->
107
108   </body>
109 </html>