239b0d16ae4a9a14ba9bf11a00f181f4841014fd
[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
18     <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
19     <!--[if lt IE 9]>
20       <script src="../../assets/js/html5shiv.js"></script>
21       <script src="../../assets/js/respond.min.js"></script>
22     <![endif]-->
23   </head>
24
25   <body>
26     <div class="container">
27
28       <div class="page-header">
29         <h1>Bootstrap grid examples</h1>
30         <p class="lead">Basic grid layouts to get you familiar with building within the Bootstrap grid system.</p>
31       </div>
32
33       <h3>Three equal columns</h3>
34       <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>
35       <div class="row">
36         <div class="col-md-4">.col-md-4</div>
37         <div class="col-md-4">.col-md-4</div>
38         <div class="col-md-4">.col-md-4</div>
39       </div>
40
41       <h3>Three unequal columns</h3>
42       <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>
43       <div class="row">
44         <div class="col-md-3">.col-md-3</div>
45         <div class="col-md-6">.col-md-6</div>
46         <div class="col-md-3">.col-md-3</div>
47       </div>
48
49       <h3>Two columns</h3>
50       <p>Get two columns <strong>starting at desktops and scaling to large desktops</strong>.</p>
51       <div class="row">
52         <div class="col-md-8">.col-md-8</div>
53         <div class="col-md-4">.col-md-4</div>
54       </div>
55
56       <h3>Full width, single column</h3>
57       <p class="text-warning">No grid classes are necessary for full-width elements.</p>
58
59       <hr>
60
61       <h3>Two columns with two nested columns</h3>
62       <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>
63       <p>At mobile device sizes, tablets and down, these columns and their nested columns will stack.</p>
64       <div class="row">
65         <div class="col-md-8">
66           .col-md-8
67           <div class="row">
68             <div class="col-md-6">.col-md-6</div>
69             <div class="col-md-6">.col-md-6</div>
70           </div>
71         </div>
72         <div class="col-md-4">.col-md-4</div>
73       </div>
74
75       <hr>
76
77       <h3>Mixed: mobile and desktop</h3>
78       <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>
79       <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>
80       <div class="row">
81         <div class="col-xs-12 col-md-8">.col-xs-12 .col-md-8</div>
82         <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
83       </div>
84       <div class="row">
85         <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
86         <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
87         <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
88       </div>
89       <div class="row">
90         <div class="col-xs-6 col-md-6">.col-xs-6 .col-md-6</div>
91         <div class="col-xs-6 col-md-6">.col-xs-6 .col-md-6</div>
92       </div>
93
94       <hr>
95
96       <h3>Mixed: mobile, tablet, and desktop</h3>
97       <p></p>
98       <div class="row">
99         <div class="col-xs-12 col-sm-8 col-lg-8">.col-xs-12 .col-lg-8</div>
100         <div class="col-xs-6 col-sm-4 col-lg-4">.col-xs-6 .col-lg-4</div>
101       </div>
102       <div class="row">
103         <div class="col-xs-6 col-sm-4 col-lg-4">.col-xs-6 .col-sm-4 .col-lg-4</div>
104         <div class="col-xs-6 col-sm-4 col-lg-4">.col-xs-6 .col-sm-4 .col-lg-4</div>
105         <div class="col-xs-6 col-sm-4 col-lg-4">.col-xs-6 .col-sm-4 .col-lg-4</div>
106       </div>
107       <div class="row">
108         <div class="col-xs-6 col-sm-6 col-lg-6">.col-xs-6 .col-sm-6 .col-lg-6</div>
109         <div class="col-xs-6 col-sm-6 col-lg-6">.col-xs-6 .col-sm-6 .col-lg-6</div>
110       </div>
111
112     </div> <!-- /container -->
113
114
115     <!-- Bootstrap core JavaScript
116     ================================================== -->
117     <!-- Placed at the end of the document so the pages load faster -->
118   </body>
119 </html>