mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-28 00:54:30 +01:00
Merge pull request #19234 from twbs/v4-w100
Add `.w-100` as width: 100% utility class
This commit is contained in:
commit
44c09cc07d
@ -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 %}
|
{% capture callout-include %}{% include callout-warning-color-assistive-technologies.md %}{% endcapture %}
|
||||||
{{ callout-include | markdownify }}
|
{{ 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
|
## 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`.
|
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`.
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
// Width
|
||||||
|
|
||||||
|
.w-100 { width: 100% !important; }
|
||||||
|
|
||||||
// Margin and Padding
|
// Margin and Padding
|
||||||
|
|
||||||
.m-x-auto {
|
.m-x-auto {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user