diff options
| author | Mark Otto <[email protected]> | 2014-09-18 19:00:26 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2014-09-18 19:00:26 -0700 |
| commit | 642fbf7e3671c9432bb3b7d321e0223721c2980a (patch) | |
| tree | c25e107cb4fe60bca8edf0e0de058411b2cac846 | |
| parent | 75204aeafa3ca7759d812e93becd4a311673f3a4 (diff) | |
| download | bootstrap-642fbf7e3671c9432bb3b7d321e0223721c2980a.tar.xz bootstrap-642fbf7e3671c9432bb3b7d321e0223721c2980a.zip | |
Fixes #14642: Add docs mention for blank checkboxes and radios
| -rw-r--r-- | docs/_includes/css/forms.html | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/docs/_includes/css/forms.html b/docs/_includes/css/forms.html index 06cfbb4db..33e0befb1 100644 --- a/docs/_includes/css/forms.html +++ b/docs/_includes/css/forms.html @@ -334,6 +334,35 @@ </label> {% endhighlight %} + <h4>Checkboxes and radios without labels</h4> + <p>Should you have no text within the <code><label></code>, the input is positioned as you'd expect. <strong>Currently only works on non-inline checkboxes and radios.</strong></p> + <div class="bs-example"> + <form role="form"> + <div class="checkbox"> + <label> + <input type="checkbox" id="blankCheckbox" value="option1"> + </label> + </div> + <div class="radio"> + <label> + <input type="radio" name="blankRadio" id="blankRadio1" value="option1"> + </label> + </div> + </form> + </div> +{% highlight html %} +<div class="checkbox"> + <label> + <input type="checkbox" id="blankCheckbox" value="option1"> + </label> +</div> +<div class="radio"> + <label> + <input type="radio" name="blankRadio" id="blankRadio1" value="option1"> + </label> +</div> +{% endhighlight %} + <h3>Selects</h3> <p>Use the default option, or add <code>multiple</code> to show multiple options at once.</p> <div class="bs-example"> |
