Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
642fbf7e
Commit
642fbf7e
authored
10 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
Fixes
#14642
: Add docs mention for blank checkboxes and radios
parent
75204aea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/_includes/css/forms.html
+29
-0
docs/_includes/css/forms.html
with
29 additions
and
0 deletions
+29
-0
docs/_includes/css/forms.html
+
29
-
0
View file @
642fbf7e
...
@@ -332,6 +332,35 @@
...
@@ -332,6 +332,35 @@
<label
class=
"radio-inline"
>
<label
class=
"radio-inline"
>
<input
type=
"radio"
name=
"inlineRadioOptions"
id=
"inlineRadio3"
value=
"option3"
>
3
<input
type=
"radio"
name=
"inlineRadioOptions"
id=
"inlineRadio3"
value=
"option3"
>
3
</label>
</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 %}
{% endhighlight %}
<h3>
Selects
</h3>
<h3>
Selects
</h3>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment