3.0.0 -> 3.0.1
[bootswatch] / bower_components / bootstrap / examples / grid / index.html
1 <!DOCTYPE html>
2 <html lang="en">
3   <head>
4     <meta charset="utf-8">
5     <meta http-equiv="X-UA-Compatible" content="IE=edge">
6     <meta name="viewport" content="width=device-width, initial-scale=1.0">
7     <meta name="description" content="">
8     <meta name="author" content="">
9     <link rel="shortcut icon" href="../../docs-assets/ico/favicon.png">
10
11     <title>Grid Template for Bootstrap</title>
12
13     <!-- Bootstrap core CSS -->
14     <link href="../../dist/css/bootstrap.css" rel="stylesheet">
15
16     <!-- Custom styles for this template -->
17     <link href="grid.css" rel="stylesheet">
18
19     <!-- Just for debugging purposes. Don't actually copy this line! -->
20     <!--[if lt IE 9]><script src="../../docs-assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
21
22     <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
23     <!--[if lt IE 9]>
24       <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
25       <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
26     <![endif]-->
27   </head>
28
29   <body>
30     <div class="container">
31
32       <div class="page-header">
33         <h1>Bootstrap grid examples</h1>
34         <p class="lead">Basic grid layouts to get you familiar with building within the Bootstrap grid system.</p>
35       </div>
36
37       <h3>Three equal columns</h3>
38       <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>
39       <div class="row">
40         <div class="col-md-4">.col-md-4</div>
41         <div class="col-md-4">.col-md-4</div>
42         <div class="col-md-4">.col-md-4</div>
43       </div>
44
45       <h3>Three unequal columns</h3>
46       <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>
47       <div class="row">
48         <div class="col-md-3">.col-md-3</div>
49         <div class="col-md-6">.col-md-6</div>
50         <div class="col-md-3">.col-md-3</div>
51       </div>
52
53       <h3>Two columns</h3>
54       <p>Get two columns <strong>starting at desktops and scaling to large desktops</strong>.</p>
55       <div class="row">
56         <div class="col-md-8">.col-md-8</div>
57         <div class="col-md-4">.col-md-4</div>
58       </div>
59
60       <h3>Full width, single column</h3>
61       <p class="text-warning">No grid classes are necessary for full-width elements.</p>
62
63       <hr>
64
65       <h3>Two columns with two nested columns</h3>
66       <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>
67       <p>At mobile device sizes, tablets and down, these columns and their nested columns will stack.</p>
68       <div class="row">
69         <div class="col-md-8">
70           .col-md-8
71           <div class="row">
72             <div class="col-md-6">.col-md-6</div>
73             <div class="col-md-6">.col-md-6</div>
74           </div>
75         </div>
76         <div class="col-md-4">.col-md-4</div>
77       </div>
78
79       <hr>
80
81       <h3>Mixed: mobile and desktop</h3>
82       <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>
83       <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>
84       <div class="row">
85         <div class="col-xs-12 col-md-8">.col-xs-12 .col-md-8</div>
86         <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
87       </div>
88       <div class="row">
89         <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
90         <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
91         <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
92       </div>
93       <div class="row">
94         <div class="col-xs-6">.col-xs-6</div>
95         <div class="col-xs-6">.col-xs-6</div>
96       </div>
97
98       <hr>
99
100       <h3>Mixed: mobile, tablet, and desktop</h3>
101       <p></p>
102       <div class="row">
103         <div class="col-xs-12 col-sm-6 col-lg-8">.col-xs-12 .col-sm-6 .col-lg-8</div>
104         <div class="col-xs-6 col-lg-4">.col-xs-6 .col-lg-4</div>
105       </div>
106       <div class="row">
107         <div class="col-xs-6 col-sm-4">.col-xs-6 .col-sm-4</div>
108         <div class="col-xs-6 col-sm-4">.col-xs-6 .col-sm-4</div>
109         <div class="col-xs-6 col-sm-4">.col-xs-6 .col-sm-4</div>
110       </div>
111
112       <hr>
113
114       <h3>Column clearing</h3>
115       <p>Clear floats at specific breakpoints to prevent awkward wrapping with uneven content.</p>
116       <div class="row">
117         <div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div>
118         <div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div>
119
120         <!-- Add the extra clearfix for only the required viewport -->
121         <div class="clearfix visible-xs"></div>
122
123         <div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div>
124         <div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div>
125       </div>
126
127       <hr>
128
129       <h3>Offset, push, and pull resets</h3>
130       <p>Reset offsets, pushes, and pulls at specific breakpoints.</p>
131       <div class="row">
132         <div class="col-sm-5 col-md-6">.col-sm-5 .col-md-6</div>
133         <div class="col-sm-5 col-sm-offset-2 col-md-6 col-md-offset-0">.col-sm-5 .col-sm-offset-2 .col-md-6 .col-md-offset-0</div>
134       </div>
135       <div class="row">
136         <div class="col-sm-6 col-md-5 col-lg-6">.col-sm-6 .col-md-5 .col-lg-6</div>
137         <div class="col-sm-6 col-md-5 col-md-offset-2 col-lg-6 col-lg-offset-0">.col-sm-6 .col-md-5 .col-md-offset-2 .col-lg-6 .col-lg-offset-0</div>
138       </div>
139
140
141     </div> <!-- /container -->
142
143
144     <!-- Bootstrap core JavaScript
145     ================================================== -->
146     <!-- Placed at the end of the document so the pages load faster -->
147   </body>
148 </html>