From: Chris Rebert Date: Wed, 14 Jan 2015 01:33:27 +0000 (-0800) Subject: Document that .form-inline & .form-horizontal work fine on non-
s too X-Git-Tag: v3.3.2~5^2~28^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b847052863c1fa26e6a9175b2decd778a640f9a;p=thirdparty%2Fbootstrap.git Document that .form-inline & .form-horizontal work fine on non-s too Fixes #15555 [skip sauce] --- diff --git a/docs/_includes/css/forms.html b/docs/_includes/css/forms.html index 054922703f..b4d01a25d0 100644 --- a/docs/_includes/css/forms.html +++ b/docs/_includes/css/forms.html @@ -56,7 +56,7 @@

Inline form

-

Add .form-inline to your <form> for left-aligned and inline-block controls. This only applies to forms within viewports that are at least 768px wide.

+

Add .form-inline to your form (which doesn't have to be a <form>) for left-aligned and inline-block controls. This only applies to forms within viewports that are at least 768px wide.

Requires custom widths

Inputs and selects have width: 100%; applied by default in Bootstrap. Within inline forms, we reset that to width: auto; so multiple controls can reside on the same line. Depending on your layout, additional custom widths may be required.

@@ -130,7 +130,7 @@ {% endhighlight %}

Horizontal form

-

Use Bootstrap's predefined grid classes to align labels and groups of form controls in a horizontal layout by adding .form-horizontal to the form. Doing so changes .form-groups to behave as grid rows, so no need for .row.

+

Use Bootstrap's predefined grid classes to align labels and groups of form controls in a horizontal layout by adding .form-horizontal to the form (which doesn't have to be a <form>). Doing so changes .form-groups to behave as grid rows, so no need for .row.