Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Document .width-auto
  • Loading branch information
simurai committed Jul 16, 2019
commit 1f8274f495befe6d8d39c4771792c0733222b922
10 changes: 10 additions & 0 deletions pages/css/utilities/layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,16 @@ Use `.width-full` to set width to 100%.
</div>
```

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.

```html
<div class="d-table width-full width-md-auto">
<div class="d-table-cell">
<input class="form-control width-full" type="text" value="Responsive width form field" aria-label="Sample full responsive width form field">
</div>
</div>
```

Use `.height-fit` to set max-height 100%.

```html
Expand Down