diff --git a/docs/base-css.html b/docs/base-css.html index 5c9d07b8e2..e0ecc0b04c 100644 --- a/docs/base-css.html +++ b/docs/base-css.html @@ -779,29 +779,25 @@ For example, <code>section</code> should be wrapped as inline.
The best part about forms in Bootstrap is that all your inputs and controls look great no matter how you build them in your markup. No superfluous HTML is required, but we provide the patterns for those who require it.
-More complicated layouts come with succinct and scalable classes for easy styling and event binding, so you're covered at every step.
-Bootstrap comes with support for four types of form layouts:
-Different types of form layouts require some changes to markup, but the controls themselves remain and behave the same.
-Bootstrap's forms include styles for all the base form controls like input, textarea, and select you'd expect. But it also comes with a number of custom components like appended and prepended inputs and support for lists of checkboxes.
-States like error, warning, and success are included for each type of form control. Also included are styles for disabled controls.
-The best part about forms in Bootstrap is that all your inputs and controls look great no matter how you build them in your markup. No superfluous HTML is required, but we provide the patterns for those who require it.
+More complicated layouts come with succinct and scalable classes for easy styling and event binding, so you're covered at every step.
+ +Bootstrap comes with support for four types of form layouts:
+Different types of form layouts require some changes to markup, but the controls themselves remain and behave the same.
+ +Bootstrap's forms include styles for all the base form controls like input, textarea, and select you'd expect. But it also comes with a number of custom components like appended and prepended inputs and support for lists of checkboxes.
+States like error, warning, and success are included for each type of form control. Also included are styles for disabled controls.
+Bootstrap provides simple markup and styles for four styles of common web forms.
@@ -839,19 +835,17 @@ For example, <code>section</code> should be wrapped as inline.Smart and lightweight defaults without extra markup.
- +Smart and lightweight defaults without extra markup.
+<form class="well"> <label>Label name</label> @@ -863,14 +857,13 @@ For example, <code>section</code> should be wrapped as inline. <button type="submit" class="btn">Submit</button> </form>-
Add .form-search
to the form and .search-query
to the input
.
Add .form-search
to the form and .search-query
to the input
.
<form class="well form-search"> <input type="text" class="input-medium search-query"> @@ -878,16 +871,16 @@ For example, <code>section</code> should be wrapped as inline. </form>-
Add .form-inline
to finesse the vertical alignment and spacing of form controls.
Add .form-inline
to finesse the vertical alignment and spacing of form controls.
<form class="well form-inline"> <input type="text" class="input-small" placeholder="Email"> @@ -898,89 +891,83 @@ For example, <code>section</code> should be wrapped as inline. <button type="submit" class="btn">Sign in</button> </form>-
Shown on the right are all the default form controls we support. Here's the bulleted list:
-Given the above example form layout, here's the markup associated with the first input and control group. The .control-group
, .control-label
, and .controls
classes are all required for styling.
Shown on the right are all the default form controls we support. Here's the bulleted list:
+Given the above example form layout, here's the markup associated with the first input and control group. The .control-group
, .control-label
, and .controls
classes are all required for styling.
<form class="form-horizontal"> <fieldset> @@ -995,253 +982,241 @@ For example, <code>section</code> should be wrapped as inline. </fieldset> </form>-
Bootstrap features styles for browser-supported focused and disabled
states. We remove the default Webkit outline
and apply a box-shadow
in its place for :focus
.
It also includes validation styles for errors, warnings, and success. To use, add the error class to the surrounding .control-group
.
Bootstrap features styles for browser-supported focused and disabled
states. We remove the default Webkit outline
and apply a box-shadow
in its place for :focus
.
It also includes validation styles for errors, warnings, and success. To use, add the error class to the surrounding .control-group
.
<fieldset class="control-group error"> … </fieldset>-
Input groups—with appended or prepended text—provide an easy way to give more context for your inputs. Great examples include the @ sign for Twitter usernames or $ for finances.
-Up to v1.4, Bootstrap required extra markup around checkboxes and radios to stack them. Now, it's a simple matter of repeating the <label class="checkbox">
that wraps the <input type="checkbox">
.
Inline checkboxes and radios are also supported. Just add .inline
to any .checkbox
or .radio
and you're done.
To use prepend or append inputs in an inline form, be sure to place the .add-on
and input
on the same line, without spaces.
To add help text for your form inputs, include inline help text with <span class="help-inline">
or a help text block with <p class="help-block">
after the input element.