A **card** is a flexible and extensible content container. It includes options for headers and footers, a wide variety of content, contextual background colors, and powerful display options.
A **card** is a flexible and extensible content container. It includes options for headers and footers, a wide variety of content, contextual background colors, and powerful display options.
If you're familiar with Bootstrap 3, cards replace our old panels, wells, and thumbnails.
If you're familiar with Bootstrap 3, cards replace our old panels, wells, and thumbnails. Similar functionality to those components is available as modifier classes for cards.
@@ -209,6 +209,7 @@ In addition to our semantic mixins, Bootstrap includes an extensive set of prebu
...
@@ -209,6 +209,7 @@ In addition to our semantic mixins, Bootstrap includes an extensive set of prebu
Using a single set of `.col-md-*` grid classes, you can create a basic grid system that starts out stacked on mobile devices and tablet devices (the extra small to small range) before becoming horizontal on desktop (medium) devices. Place grid columns in any `.row`.
Using a single set of `.col-md-*` grid classes, you can create a basic grid system that starts out stacked on mobile devices and tablet devices (the extra small to small range) before becoming horizontal on desktop (medium) devices. Place grid columns in any `.row`.
<divclass="bd-example-row">
{% example html %}
{% example html %}
<divclass="row">
<divclass="row">
<divclass="col-md-1">.col-md-1</div>
<divclass="col-md-1">.col-md-1</div>
...
@@ -238,6 +239,7 @@ Using a single set of `.col-md-*` grid classes, you can create a basic grid syst
...
@@ -238,6 +239,7 @@ Using a single set of `.col-md-*` grid classes, you can create a basic grid syst
<divclass="col-md-6">.col-md-6</div>
<divclass="col-md-6">.col-md-6</div>
</div>
</div>
{% endexample %}
{% endexample %}
</div>
### Example: Fluid container
### Example: Fluid container
...
@@ -255,6 +257,7 @@ Turn any fixed-width grid layout into a full-width layout by changing your outer
...
@@ -255,6 +257,7 @@ Turn any fixed-width grid layout into a full-width layout by changing your outer
Don't want your columns to simply stack in smaller devices? Use the extra small and medium device grid classes by adding `.col-xs-*` and `.col-md-*` to your columns. See the example below for a better idea of how it all works.
Don't want your columns to simply stack in smaller devices? Use the extra small and medium device grid classes by adding `.col-xs-*` and `.col-md-*` to your columns. See the example below for a better idea of how it all works.
<divclass="bd-example-row">
{% example html %}
{% example html %}
<!-- Stack the columns on mobile by making one full-width and the other half-width -->
<!-- Stack the columns on mobile by making one full-width and the other half-width -->
<divclass="row">
<divclass="row">
...
@@ -275,11 +278,13 @@ Don't want your columns to simply stack in smaller devices? Use the extra small
...
@@ -275,11 +278,13 @@ Don't want your columns to simply stack in smaller devices? Use the extra small
<divclass="col-xs-6">.col-xs-6</div>
<divclass="col-xs-6">.col-xs-6</div>
</div>
</div>
{% endexample %}
{% endexample %}
</div>
### Example: Mobile, tablet, desktop
### Example: Mobile, tablet, desktop
Build on the previous example by creating even more dynamic and powerful layouts with tablet `.col-sm-*` classes.
Build on the previous example by creating even more dynamic and powerful layouts with tablet `.col-sm-*` classes.
If more than 12 columns are placed within a single row, each group of extra columns will, as one unit, wrap onto a new line.
If more than 12 columns are placed within a single row, each group of extra columns will, as one unit, wrap onto a new line.
<divclass="bd-example-row">
{% example html %}
{% example html %}
<divclass="row">
<divclass="row">
<divclass="col-xs-9">.col-xs-9</div>
<divclass="col-xs-9">.col-xs-9</div>
...
@@ -305,11 +312,13 @@ If more than 12 columns are placed within a single row, each group of extra colu
...
@@ -305,11 +312,13 @@ If more than 12 columns are placed within a single row, each group of extra colu
<divclass="col-xs-6">.col-xs-6<br>Subsequent columns continue along the new line.</div>
<divclass="col-xs-6">.col-xs-6<br>Subsequent columns continue along the new line.</div>
</div>
</div>
{% endexample %}
{% endexample %}
</div>
### Example: Responsive column resets
### Example: Responsive column resets
With the four tiers of grids available you're bound to run into issues where, at certain breakpoints, your columns don't clear quite right as one is taller than the other. To fix that, use a combination of a `.clearfix` and our [responsive utility classes](#responsive-utilities).
With the four tiers of grids available you're bound to run into issues where, at certain breakpoints, your columns don't clear quite right as one is taller than the other. To fix that, use a combination of a `.clearfix` and our [responsive utility classes](#responsive-utilities).
In addition to column clearing at responsive breakpoints, you may need to **reset offsets, pushes, or pulls**. See this in action in [the grid example](../examples/grid/).
In addition to column clearing at responsive breakpoints, you may need to **reset offsets, pushes, or pulls**. See this in action in [the grid example](../examples/grid/).
Move columns to the right using `.col-md-offset-*` classes. These classes increase the left margin of a column by `*` columns. For example, `.col-md-offset-4` moves `.col-md-4` over four columns.
Move columns to the right using `.col-md-offset-*` classes. These classes increase the left margin of a column by `*` columns. For example, `.col-md-offset-4` moves `.col-md-4` over four columns.
<divclass="bd-example-row">
{% example html %}
{% example html %}
<divclass="row">
<divclass="row">
<divclass="col-md-4">.col-md-4</div>
<divclass="col-md-4">.col-md-4</div>
...
@@ -354,11 +367,13 @@ Move columns to the right using `.col-md-offset-*` classes. These classes increa
...
@@ -354,11 +367,13 @@ Move columns to the right using `.col-md-offset-*` classes. These classes increa
To nest your content with the default grid, add a new `.row` and set of `.col-sm-*` columns within an existing `.col-sm-*` column. Nested rows should include a set of columns that add up to 12 or fewer (it is not required that you use all 12 available columns).
To nest your content with the default grid, add a new `.row` and set of `.col-sm-*` columns within an existing `.col-sm-*` column. Nested rows should include a set of columns that add up to 12 or fewer (it is not required that you use all 12 available columns).
<divclass="bd-example-row">
{% example html %}
{% example html %}
<divclass="row">
<divclass="row">
<divclass="col-sm-9">
<divclass="col-sm-9">
...
@@ -374,14 +389,17 @@ To nest your content with the default grid, add a new `.row` and set of `.col-sm
...
@@ -374,14 +389,17 @@ To nest your content with the default grid, add a new `.row` and set of `.col-sm
</div>
</div>
</div>
</div>
{% endexample %}
{% endexample %}
</div>
### Example: Column ordering
### Example: Column ordering
Easily change the order of our built-in grid columns with `.col-md-push-*` and `.col-md-pull-*` modifier classes.
Easily change the order of our built-in grid columns with `.col-md-push-*` and `.col-md-pull-*` modifier classes.