48 merge requests!28721Hot test,!27561Adds font-weight-medium to font weight classes,!26437merge,!26197V4 dev xmr,!20778V4 dev,!20539Allow multiple modals,!18047#17986,!18988Blockquote border width,!20854Fixes 15534,!19272V4 dev xmr grunt html,!17218Issue 17066,!19581V4 fix popover,!18283Tether docs fix,!17229Include documentation for .navbar-static-top,!20493V4 dev display,!20636Fix docs for heading sizes,!19824blockquote-center,!22547Finished a new translation for bootstrap,!19534Docs 17264,!19533Npm deps,!22143Fix selectable disabled toggle radio buttons,!19084V4 rhythm,!18085Ie9 click comment,!22598test,!18829Add prefix to carousel classes,!18581Check getting started files for broken links - Issue 18568,!18067replace grunt-autoprefixer with gruntpostcss + autoprefixer,!20099V4.0.0 alpha.3,!20438V4 grid classes,!17307Vertical alignment on Bootstrap columns with equal height,!18477add utility color-contrast function,!18864Feature/navbar toggler support color schemes,!19602V4 palettes arun,!18311V4 dev xmr,!19448New pull request for testing,!19358XXL grid size,!19825.blockquote-center,!17508Fix usage of “its” and “it’s” (v4 docs),!25326Adjust examples,!23995Add back cursor: pointer for .btn-link,!23178Spinner,!19754Issue template,!19753Card img overlay padding,!19747Blockquote border width,!19580ExitStars,!18684Docs: change "Button" to "Go somewhere",!18661Docs: accessibility fix-up of collapsible content navbar, change site-wide main navbar,!17021v4
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.