From d9bb7ddac5c2be077f9d1f250325bb07b4e963ce Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 11 Jul 2014 22:34:47 -0700 Subject: rearrange docs components --- docs/components/forms.md | 657 ++++++++++++----------------------------------- 1 file changed, 165 insertions(+), 492 deletions(-) (limited to 'docs/components/forms.md') diff --git a/docs/components/forms.md b/docs/components/forms.md index 6192c6d80..b882e2233 100644 --- a/docs/components/forms.md +++ b/docs/components/forms.md @@ -1,32 +1,15 @@ -
-

Forms

- -

Basic example

-

Individual form controls automatically receive some global styling. All textual <input>, <textarea>, and <select> elements with .form-control are set to width: 100%; by default. Wrap labels and controls in .form-group for optimum spacing.

-
-
-
- - -
-
- - -
-
- - -

Example block-level help text here.

-
-
- -
- -
-
-{% highlight html %} +--- +layout: page +title: Forms +--- + +Bootstrap normalizes common HTML5 form elements and adds a number of layout options for building forms of all sizes. + +## Example form + +Individual form controls automatically receive some global styling. All textual ``, ` - -
-{% highlight html %} +
+

Input groups

+

To add integrated text or buttons before and/or after any text-based `<input>`, check out the input group component.

+
+ +### Textarea + +Form control which supports multiple lines of text. Change `rows` attribute as necessary. + +{% example html %} -{% endhighlight %} +{% endexample %} -

Checkboxes and radios

-

Checkboxes are for selecting one or several options in a list, while radios are for selecting one option from many.

-

A checkbox or radio with the disabled attribute will be styled appropriately. To have the <label> for the checkbox or radio also display a "not-allowed" cursor when the user hovers over the label, add the .disabled class to your .radio, .radio-inline, .checkbox, .checkbox-inline, or <fieldset>.

-

Default (stacked)

-
-
-
- -
-
- -
-
-
- -
-
- -
-
- -
-
-
-{% highlight html %} +### Checkboxes and radios + +Checkboxes are for selecting one or several options in a list, while radios are for selecting one option from many. + +A checkbox or radio with the `disabled` attribute will be styled appropriately. To have the `