mirror of https://github.com/twbs/bootstrap.git
				
				
				
			Fixes #14642: Add docs mention for blank checkboxes and radios
This commit is contained in:
		
							parent
							
								
									75204aeafa
								
							
						
					
					
						commit
						642fbf7e36
					
				|  | @ -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> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue