From 01c6617f79b72c72ef9dfe5085638e69ec80f090 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 26 Jul 2013 15:51:25 -0700 Subject: Update inline and horizontal forms * No more need for `.row.form-group`--only need `.form-group` * Change tag selectors for inline form to use `.form-control` * Docs improved to explain what's happening --- css.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'css.html') diff --git a/css.html b/css.html index 0603484f0..d1bbfa40f 100644 --- a/css.html +++ b/css.html @@ -1166,7 +1166,7 @@ For example, <section> should be wrapped as inline.

Basic example

-

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

+

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.

Legend @@ -1252,15 +1252,15 @@ For example, <section> should be wrapped as inline. {% endhighlight %}

Horizontal form

-

Use Bootstrap's predefined grid classes to align labels and groups of form controls in a horizontal layout.

+

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.

-
+
-
+
@@ -1277,13 +1277,13 @@ For example, <section> should be wrapped as inline. {% highlight html %}
-
+
-
+
-- cgit v1.2.3