From 29e6ef7c703c5a8eb6e19dea22f797c20e1e533e Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 18 Feb 2012 15:23:38 -0800 Subject: clarify forms in navbar per #2072 --- docs/components.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'docs/components.html') diff --git a/docs/components.html b/docs/components.html index 41f5e5819..b7e60df87 100644 --- a/docs/components.html +++ b/docs/components.html @@ -830,8 +830,14 @@ Project name </a> -

Search form

-

Search forms receive custom styles in the navbar with the .navbar-search class. Include .pull-left or .pull-right on the form to align it.

+

Forms in navbar

+

To properly style and position a form within the navbar, add the appropriate classes as shown below. For a default form, include .navbar-form and either .pull-left or .pull-right to properly align it.

+
+<form class="navbar-form pull-left">
+  <input type="text" class="span2">
+</form>
+
+

For a more customized search form, add the .navbar-search class to receive specialized styles in the navbar.

 <form class="navbar-search pull-left">
   <input type="text" class="search-query" placeholder="Search">
-- 
cgit v1.2.3