aboutsummaryrefslogtreecommitdiff
path: root/docs/components
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2016-04-06 15:06:23 -0700
committerChris Rebert <[email protected]>2016-04-06 15:06:25 -0700
commit3165835a1bcfcc3b2046d883bf90e21ab3784c76 (patch)
tree4302d08a184965b2c0b071d21a5288492999558d /docs/components
parentcde26a523402bd0ae7c7996805dc5e6597823359 (diff)
downloadbootstrap-3165835a1bcfcc3b2046d883bf90e21ab3784c76.tar.xz
bootstrap-3165835a1bcfcc3b2046d883bf90e21ab3784c76.zip
Add docs for .w-100 utility class
[skip sauce]
Diffstat (limited to 'docs/components')
-rw-r--r--docs/components/utilities.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/components/utilities.md b/docs/components/utilities.md
index 76bf5f9be..829ee4907 100644
--- a/docs/components/utilities.md
+++ b/docs/components/utilities.md
@@ -165,6 +165,14 @@ Sometimes contextual classes cannot be applied due to the specificity of another
{% capture callout-include %}{% include callout-warning-color-assistive-technologies.md %}{% endcapture %}
{{ callout-include | markdownify }}
+## Widths
+
+Easily make an element as wide as its parent using the `.w-100` utility class, which sets `width: 100%`.
+
+{% example html %}
+<img class="w-100" data-src="holder.js/200px100?outline=yes&text=Width%20%3D%20100%25" alt="Width = 100%">
+{% endexample %}
+
## Close icon
Use a generic close icon for dismissing content like modals and alerts. **Be sure to include text for screen readers**, as we've done with `aria-label`.