diff options
| author | Mark Otto <[email protected]> | 2012-11-30 13:35:20 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-11-30 13:35:20 -0800 |
| commit | fe8061b84ecdda5ea70514fe487e2f46564439e2 (patch) | |
| tree | b39a7f509223e3092adbb80bc2a0a4a4b014ab0d /docs/base-css.html | |
| parent | f9a47e3a5fc1f91f041f2d8cb264f1d5af142126 (diff) | |
| download | bootstrap-fe8061b84ecdda5ea70514fe487e2f46564439e2.tar.xz bootstrap-fe8061b84ecdda5ea70514fe487e2f46564439e2.zip | |
more tests for form styles; includes lightening help text
Diffstat (limited to 'docs/base-css.html')
| -rw-r--r-- | docs/base-css.html | 36 |
1 files changed, 22 insertions, 14 deletions
diff --git a/docs/base-css.html b/docs/base-css.html index 8ddb107ff..c8a785fed 100644 --- a/docs/base-css.html +++ b/docs/base-css.html @@ -885,16 +885,18 @@ For example, <code><section></code> should be wrapped as inlin </div> <h2 id="forms-default">Default styles</h2> - <p>Individual form controls receive styling, but without any required base class on the <code><form></code> or large changes in markup. Results in stacked, left-aligned labels on top of form controls.</p> + <p>Individual form controls automatically receive some global styling. By default, inputs are set to <code>width: 100%;</code>.</p> <form class="bs-docs-example"> <fieldset> <legend>Legend</legend> <label>Label name</label> <input type="text" placeholder="Type something…"> - <span class="help-block">Example block-level help text here.</span> - <label class="checkbox"> - <input type="checkbox"> Check me out - </label> + <p class="help-block">Example block-level help text here.</p> + <div class="checkbox"> + <label> + <input type="checkbox"> Check me out + </label> + </div> <button type="submit" class="btn">Submit</button> </fieldset> </form> @@ -905,9 +907,11 @@ For example, <code><section></code> should be wrapped as inlin <label>Label name</label> <input type="text" placeholder="Type something…"> <span class="help-block">Example block-level help text here.</span> - <label class="checkbox"> - <input type="checkbox"> Check me out - </label> + <div class="checkbox"> + <label> + <input type="checkbox"> Check me out + </label> + </div> <button type="submit" class="btn">Submit</button> </fieldset> </form> @@ -938,18 +942,22 @@ For example, <code><section></code> should be wrapped as inlin <form class="bs-docs-example form-inline"> <input type="text" class="span3" placeholder="Email"> <input type="password" class="span3" placeholder="Password"> - <label class="checkbox"> - <input type="checkbox"> Remember me - </label> + <div class="checkbox"> + <label> + <input type="checkbox"> Remember me + </label> + </div> <button type="submit" class="btn">Sign in</button> </form> <pre class="prettyprint linenums"> <form class="form-inline"> <input type="text" class="span3" placeholder="Email"> <input type="password" class="span3" placeholder="Password"> - <label class="checkbox"> - <input type="checkbox"> Remember me - </label> + <div class="checkbox"> + <label> + <input type="checkbox"> Remember me + </label> + </div> <button type="submit" class="btn">Sign in</button> </form> </pre> |
