mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-06 04:08:22 +01:00
Merge pull request #17553 from rbrs/form-inline
v4 - fixed incorrect inline form class in docs
This commit is contained in:
commit
9f594cfe59
@ -186,7 +186,7 @@ The `.form-group` class is the easiest way to add some structure to forms. Its o
|
|||||||
|
|
||||||
### Inline forms
|
### Inline forms
|
||||||
|
|
||||||
Use the `.inline-form` class to to display a series of labels, form controls, and buttons on a single horizontal row. Form controls within inline forms behave differently:
|
Use the `.form-inline` class to to display a series of labels, form controls, and buttons on a single horizontal row. Form controls within inline forms behave differently:
|
||||||
|
|
||||||
- Controls are `display: inline-block` to provide alignment control via `vertical-align` and `margin`.
|
- Controls are `display: inline-block` to provide alignment control via `vertical-align` and `margin`.
|
||||||
- Controls receive `width: auto` to override the Bootstrap default `width: 100%`.
|
- Controls receive `width: auto` to override the Bootstrap default `width: 100%`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user