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