Skip to content

Commit

Permalink
Closes #25039
Browse files Browse the repository at this point in the history
Adds some additional context on `.form-group` usage
  • Loading branch information
mdo authored Dec 23, 2017
1 parent b3e9547 commit fd6467d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/4.0/components/forms.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ Since Bootstrap applies `display: block` and `width: 100%` to almost all our for

### Form groups

The `.form-group` class is the easiest way to add some structure to forms. Its only purpose is to provide `margin-bottom` around a label and control pairing. As a bonus, since it's a class you can use it with `<fieldset>`s, `<div>`s, or nearly any other element.
The `.form-group` class is the easiest way to add some structure to forms. It provides a flexible class that encourages proper grouping of labels, controls, optional help text, and form validation messaging. By default it only applies `margin-bottom`, but it picks up additional styles in `.form-inline` as needed. Use it with `<fieldset>`s, `<div>`s, or nearly any other element.

{% example html %}
<form>
Expand Down

0 comments on commit fd6467d

Please sign in to comment.