mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
add another code example for horizontal forms
This commit is contained in:
parent
83cb105317
commit
abf4ecac4d
Binary file not shown.
@ -869,7 +869,8 @@ For example, <code>section</code> should be wrapped as inline.
|
|||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<form class="well">
|
<form class="well">
|
||||||
<label>Label name</label>
|
<label>Label name</label>
|
||||||
<input type="text" class="span3" placeholder="Type something…"> <span class="help-inline">Associated help text!</span>
|
<input type="text" class="span3" placeholder="Type something…">
|
||||||
|
<span class="help-inline">Associated help text!</span>
|
||||||
<label class="checkbox">
|
<label class="checkbox">
|
||||||
<input type="checkbox"> Check me out
|
<input type="checkbox"> Check me out
|
||||||
</label>
|
</label>
|
||||||
@ -983,6 +984,22 @@ For example, <code>section</code> should be wrapped as inline.
|
|||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
|
<h3>Example markup</h3>
|
||||||
|
<p>Given the above example form layout, here's the markup associated with the first input and control group.</p>
|
||||||
|
<pre class="prettyprint linenums">
|
||||||
|
<form class="form-horizontal">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Legend text</legend>
|
||||||
|
<div class="control-group">
|
||||||
|
<label class="control-label" for="input01">Text input</label>
|
||||||
|
<div class="controls">
|
||||||
|
<input type="text" class="input-xlarge" id="input01">
|
||||||
|
<p class="help-block">Supporting help text</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>What's included</h3>
|
<h3>What's included</h3>
|
||||||
|
16
docs/templates/pages/base-css.mustache
vendored
16
docs/templates/pages/base-css.mustache
vendored
@ -908,6 +908,22 @@
|
|||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
|
<h3>{{_i}}Example markup{{/i}}</h3>
|
||||||
|
<p>{{_i}}Given the above example form layout, here's the markup associated with the first input and control group.{{/i}}</p>
|
||||||
|
<pre class="prettyprint linenums">
|
||||||
|
<form class="form-horizontal">
|
||||||
|
<fieldset>
|
||||||
|
<legend>{{_i}}Legend text{{/i}}</legend>
|
||||||
|
<div class="control-group">
|
||||||
|
<label class="control-label" for="input01">{{_i}}Text input{{/i}}</label>
|
||||||
|
<div class="controls">
|
||||||
|
<input type="text" class="input-xlarge" id="input01">
|
||||||
|
<p class="help-block">{{_i}}Supporting help text{{/i}}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>{{_i}}What's included{{/i}}</h3>
|
<h3>{{_i}}What's included{{/i}}</h3>
|
||||||
|
Loading…
Reference in New Issue
Block a user