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">
10 <title>Grid Template for Bootstrap</title>
12 <!-- Bootstrap core CSS -->
13 <link href="../../dist/css/bootstrap.css" rel="stylesheet">
15 <!-- Custom styles for this template -->
16 <link href="grid.css" rel="stylesheet">
20 <div class="container">
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>
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>
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>
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>
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>
44 <p>Get two columns <strong>starting at desktops and scaling to large desktops</strong>.</p>
46 <div class="col-md-8">.col-md-8</div>
47 <div class="col-md-4">.col-md-4</div>
50 <h3>Full width, single column</h3>
51 <p class="text-warning">No grid classes are necessary for full-width elements.</p>
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>
59 <div class="col-md-8">
62 <div class="col-md-6">.col-md-6</div>
63 <div class="col-md-6">.col-md-6</div>
66 <div class="col-md-4">.col-md-4</div>
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>
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>
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>
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>
90 <h3>Mixed: mobile, tablet, and desktop</h3>
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>
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>
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>
106 </div> <!-- /container -->