aboutsummaryrefslogtreecommitdiff
path: root/docs/components
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2016-12-22 16:44:33 -0800
committerMark Otto <[email protected]>2016-12-22 16:44:33 -0800
commit3f5c0a884a44983629659d3748d9d485ac7b3472 (patch)
treeeafda29b44220d79f2dbb5535f7e512e40e11e77 /docs/components
parent3cc23e9747c84e6a2d8ae2b109657da821a6a79d (diff)
downloadbootstrap-3f5c0a884a44983629659d3748d9d485ac7b3472.tar.xz
bootstrap-3f5c0a884a44983629659d3748d9d485ac7b3472.zip
update alignment section with widths
Diffstat (limited to 'docs/components')
-rw-r--r--docs/components/card.md29
1 files changed, 29 insertions, 0 deletions
diff --git a/docs/components/card.md b/docs/components/card.md
index 56d20ac45..1bfe4ff74 100644
--- a/docs/components/card.md
+++ b/docs/components/card.md
@@ -242,6 +242,35 @@ Use custom CSS in your stylesheets or as inline styles to set a width.
</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]({{ site.baseurl }}/utilities/typography/#text-alignment).
+
+{% example html %}
+<div class="card" style="width: 20rem;">
+ <div class="card-block">
+ <h4 class="card-title">Special title treatment</h4>
+ <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="card text-center" style="width: 20rem;">
+ <div class="card-block">
+ <h4 class="card-title">Special title treatment</h4>
+ <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="card text-right" style="width: 20rem;">
+ <div class="card-block">
+ <h4 class="card-title">Special title treatment</h4>
+ <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>
+{% endexample %}
{% example html %}
<div class="card text-center">
<div class="card-header">