diff options
| author | Mark Otto <[email protected]> | 2015-04-23 01:33:19 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2015-04-23 01:33:19 -0700 |
| commit | fe6756485fea6bbe3ff3f9198b72bdbf9fbde8b5 (patch) | |
| tree | 7a7ece5726c071b16805feec20d99291fc750c42 | |
| parent | 37e543759bd38b07311b8c4ce8d54bf2c8a9e374 (diff) | |
| download | bootstrap-fe6756485fea6bbe3ff3f9198b72bdbf9fbde8b5.tar.xz bootstrap-fe6756485fea6bbe3ff3f9198b72bdbf9fbde8b5.zip | |
add card grid sizing
| -rw-r--r-- | docs/components/card.md | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/docs/components/card.md b/docs/components/card.md index d8a356f6a..715c5eb3e 100644 --- a/docs/components/card.md +++ b/docs/components/card.md @@ -19,6 +19,37 @@ Cards require very little markup, but do require some additional classes to give </div> {% endexample %} +### Sizing + +Cards are block-leve by default, so they'll fill the available horizontal space. Constrain their widths via custom styles, our predefined grid classes, or our grid mixins. + +{% example html %} +<div class="card" style="width: 20rem;"> + <h3 class="card-title">Special title treatment</h3> + <p class="card-text">With supporting text below as a natural lead-in to additional content.</p> + <a href="#" class="btn btn-primary">Go somewhere</a> +</div> +{% endexample %} + +{% example html %} +<div class="row"> + <div class="col-sm-6"> + <div class="card"> + <h3 class="card-title">Special title treatment</h3> + <p class="card-text">With supporting text below as a natural lead-in to additional content.</p> + <a href="#" class="btn btn-primary">Go somewhere</a> + </div> + </div> + <div class="col-sm-6"> + <div class="card"> + <h3 class="card-title">Special title treatment</h3> + <p class="card-text">With supporting text below as a natural lead-in to additional content.</p> + <a href="#" class="btn btn-primary">Go somewhere</a> + </div> + </div> +</div> +{% endexample %} + ### Text alignment You can quickly change the text alignment of any card—in its entirety or specific parts—with our [text align classes](). |
