aboutsummaryrefslogtreecommitdiff
path: root/docs/base-css.html
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-07-10 00:32:04 -0700
committerMark Otto <[email protected]>2012-07-10 00:32:30 -0700
commit5d8e78e0faedb4365216f1ebbc5d70dc560f3f6e (patch)
tree67bc139371c6a5242fae8823c2c2897e3ce0561c /docs/base-css.html
parent75d952ffd80c3c3e18b2e47eac30a2b23d8ae7a7 (diff)
downloadbootstrap-5d8e78e0faedb4365216f1ebbc5d70dc560f3f6e.tar.xz
bootstrap-5d8e78e0faedb4365216f1ebbc5d70dc560f3f6e.zip
fixes #3605: add support for input-prepend/-append to .form-search
Diffstat (limited to 'docs/base-css.html')
-rw-r--r--docs/base-css.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/base-css.html b/docs/base-css.html
index 175825c71..75296003b 100644
--- a/docs/base-css.html
+++ b/docs/base-css.html
@@ -752,6 +752,7 @@ For example, &lt;code&gt;section&lt;/code&gt; should be wrapped as inline.
<h2>Default styles</h2>
<p>Individual form controls receive styling, but without any required base class on the <code>&lt;form&gt;</code> or large changes in markup. Results in stacked, left-aligned labels on top of form controls.</p>
<form class="bs-docs-example">
+ <legend>Legend</legend>
<label>Label name</label>
<input type="text" placeholder="Type something…">
<p class="help-block">Example block-level help text here.</p>
@@ -822,6 +823,7 @@ For example, &lt;code&gt;section&lt;/code&gt; should be wrapped as inline.
<li>Wrap any associated controls in <code>.controls</code> for proper alignment</li>
</ul>
<form class="bs-docs-example form-horizontal">
+ <legend>Legend</legend>
<div class="control-group">
<label class="control-label" for="">Email</label>
<div class="controls">
@@ -1061,6 +1063,24 @@ For example, &lt;code&gt;section&lt;/code&gt; should be wrapped as inline.
&lt;/div&gt;
</pre>
+ <h4>Search form</h4>
+ <form class="bs-docs-example form-search">
+ <div class="input-append">
+ <input type="text" class="span2 search-query">
+ <button type="submit" class="btn">Search</button>
+ </div>
+ <div class="input-prepend">
+ <button type="submit" class="btn">Search</button>
+ <input type="text" class="span2 search-query">
+ </div>
+ </form>
+<pre class="prettyprint linenums">
+&lt;form class="form-search"&gt;
+ &lt;input type="text" class="span2 search-query"&gt;
+ &lt;button type="submit" class="btn"&gt;Search&lt;/button&gt;
+&lt;/form&gt;
+</pre>
+
<h3>Control sizing</h3>
<p>Use relative sizing classes like <code>.input-large</code> or match your inputs to the grid column sizes using <code>.span*</code> classes.</p>