From e23906facaa63fcc97bddbd0895c301699c9e942 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 5 Aug 2013 12:17:09 -0700 Subject: Fixes #8150: add `.static-form-control` for vertical alignment of static form text - Also fixes the vertical alignment of labels in horizontal layouts on account of the recent button and input padding changes - Also changes the vertical alignment of the checkboxes and radios in horizontal forms --- css.html | 40 +++++++++++++++++++++++++++++++++++----- 1 file changed, 35 insertions(+), 5 deletions(-) (limited to 'css.html') diff --git a/css.html b/css.html index 096b9e505..b175cf800 100644 --- a/css.html +++ b/css.html @@ -1257,10 +1257,7 @@ For example, <section> should be wrapped as inline. {% endhighlight %} -

Optional layouts

-

Included with Bootstrap are optional form layouts for common use cases.

- -

Inline form

+

Inline form

Add .form-inline for left-aligned and inline-block controls for a compact layout.

Requires custom widths

@@ -1289,7 +1286,7 @@ For example, <section> should be wrapped as inline. {% endhighlight %} -

Horizontal form

+

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.

@@ -1485,6 +1482,39 @@ For example, <section> should be wrapped as inline. {% endhighlight %} +

Static text in horizontal forms

+

When you need to place regular, static text next to a form label within a horizontal form, use the .form-control-static class on a <p>.

+ +
+ +
+

email@example.com

+
+
+
+ +
+ +
+
+ +{% highlight html %} +
+
+ +
+

email@example.com

+
+
+
+ +
+ +
+
+
+{% endhighlight %} +

Form control states

Provide feedback to users or visitors with basic feedback states on form controls and labels.

-- cgit v1.2.3