2013-04-01 21:55:48 +02:00
|
|
|
---
|
|
|
|
layout: example
|
|
|
|
title: Grid template
|
|
|
|
---
|
|
|
|
|
|
|
|
<!-- Custom styles for this template -->
|
|
|
|
<style>
|
|
|
|
|
|
|
|
.container {
|
|
|
|
padding-left: 15px;
|
|
|
|
padding-right: 15px;
|
|
|
|
}
|
|
|
|
|
2013-05-17 07:11:31 +02:00
|
|
|
h4 {
|
|
|
|
margin-top: 25px;
|
|
|
|
}
|
2013-04-01 21:55:48 +02:00
|
|
|
.row {
|
|
|
|
margin-bottom: 20px;
|
|
|
|
}
|
2013-05-17 07:11:31 +02:00
|
|
|
.row .row {
|
|
|
|
margin-top: 10px;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2013-04-29 04:22:33 +02:00
|
|
|
[class*="col-lg-"] {
|
2013-04-01 21:55:48 +02:00
|
|
|
padding-top: 15px;
|
|
|
|
padding-bottom: 15px;
|
2013-06-10 08:43:43 +02:00
|
|
|
background-color: rgba(185,74,72,.15);
|
|
|
|
border: 1px solid rgba(185,74,72,.2);
|
2013-04-01 21:55:48 +02:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
|
|
|
|
<h2>Bootstrap grids</h2>
|
|
|
|
<p class="lead">Basic grid layouts to get you familiar with building within the Bootstrap grid system.</p>
|
|
|
|
|
|
|
|
<h4>Three equal columns</h4>
|
|
|
|
<div class="row">
|
2013-06-04 06:57:51 +02:00
|
|
|
<div class="col-lg-4">.col-lg-4</div>
|
|
|
|
<div class="col-lg-4">.col-lg-4</div>
|
|
|
|
<div class="col-lg-4">.col-lg-4</div>
|
2013-04-01 21:55:48 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<h4>Three unequal columns</h4>
|
|
|
|
<div class="row">
|
2013-06-04 06:57:51 +02:00
|
|
|
<div class="col-lg-3">.col-lg-3</div>
|
|
|
|
<div class="col-lg-6">.col-lg-6</div>
|
|
|
|
<div class="col-lg-3">.col-lg-3</div>
|
2013-04-01 21:55:48 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<h4>Two columns</h4>
|
|
|
|
<div class="row">
|
2013-06-04 06:57:51 +02:00
|
|
|
<div class="col-lg-8">.col-lg-8</div>
|
|
|
|
<div class="col-lg-4">.col-lg-4</div>
|
2013-04-01 21:55:48 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<h4>Full width, single column</h4>
|
2013-05-17 07:11:31 +02:00
|
|
|
<p class="text-warning">No grid classes are necessary for full-width elements.</p>
|
|
|
|
|
|
|
|
<h4>Two columns with two nested columns</h4>
|
|
|
|
<div class="row">
|
2013-06-04 06:57:51 +02:00
|
|
|
<div class="col-lg-8">
|
|
|
|
.col-lg-8
|
2013-05-17 07:11:31 +02:00
|
|
|
<div class="row">
|
2013-06-04 06:57:51 +02:00
|
|
|
<div class="col-lg-6">.col-lg-6</div>
|
|
|
|
<div class="col-lg-6">.col-lg-6</div>
|
2013-05-17 07:11:31 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2013-06-04 06:57:51 +02:00
|
|
|
<div class="col-lg-4">.col-lg-4</div>
|
2013-05-17 07:11:31 +02:00
|
|
|
</div>
|
|
|
|
|
2013-06-10 08:43:43 +02:00
|
|
|
<h4>Mixed: mobile and desktop</h4>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12 col-lg-8">.col-12 .col-lg-8</div>
|
|
|
|
<div class="col-6 col-lg-4">.col-6 .col-lg-4</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-6 col-lg-4">.col-6 .col-lg-4</div>
|
|
|
|
<div class="col-6 col-lg-4">.col-6 .col-lg-4</div>
|
|
|
|
<div class="col-6 col-lg-4">.col-6 .col-lg-4</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-6 col-lg-6">.col-6 .col-lg-6</div>
|
|
|
|
<div class="col-6 col-lg-6">.col-6 .col-lg-6</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h4>Mixed: mobile, tablet, and desktop</h4>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12 col-sm-8 col-lg-8">.col-12 .col-lg-8</div>
|
|
|
|
<div class="col-6 col-sm-4 col-lg-4">.col-6 .col-lg-4</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-6 col-sm-4 col-lg-4">.col-6 .col-lg-4</div>
|
|
|
|
<div class="col-6 col-sm-4 col-lg-4">.col-6 .col-lg-4</div>
|
|
|
|
<div class="col-6 col-sm-4 col-lg-4">.col-6 .col-lg-4</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-6 col-sm-6 col-lg-6">.col-6 .col-lg-6</div>
|
|
|
|
<div class="col-6 col-sm-6 col-lg-6">.col-6 .col-lg-6</div>
|
|
|
|
</div>
|
|
|
|
|
2013-04-01 21:55:48 +02:00
|
|
|
|
|
|
|
</div> <!-- /container -->
|