Skip to content

Commit 1f8274f

Browse files
committed
Document .width-auto
1 parent b349278 commit 1f8274f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pages/css/utilities/layout.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,16 @@ Use `.width-full` to set width to 100%.
190190
</div>
191191
```
192192

193+
Use `.width-auto` to reset width to `auto` (initial value). Typically used with **responsive variants**. Resize the window to see the effect in the example below.
194+
195+
```html
196+
<div class="d-table width-full width-md-auto">
197+
<div class="d-table-cell">
198+
<input class="form-control width-full" type="text" value="Responsive width form field" aria-label="Sample full responsive width form field">
199+
</div>
200+
</div>
201+
```
202+
193203
Use `.height-fit` to set max-height 100%.
194204

195205
```html

0 commit comments

Comments
 (0)