mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
Wrap checkboxes in .form-group
(#27624)
This commit is contained in:
parent
8de915eded
commit
2df2cdd33d
@ -715,11 +715,13 @@ Put a form within a dropdown menu, or make it into a dropdown menu, and use [mar
|
|||||||
<label for="exampleDropdownFormPassword1">Password</label>
|
<label for="exampleDropdownFormPassword1">Password</label>
|
||||||
<input type="password" class="form-control" id="exampleDropdownFormPassword1" placeholder="Password">
|
<input type="password" class="form-control" id="exampleDropdownFormPassword1" placeholder="Password">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-check">
|
<div class="form-group">
|
||||||
<input type="checkbox" class="form-check-input" id="dropdownCheck">
|
<div class="form-check">
|
||||||
<label class="form-check-label" for="dropdownCheck">
|
<input type="checkbox" class="form-check-input" id="dropdownCheck">
|
||||||
Remember me
|
<label class="form-check-label" for="dropdownCheck">
|
||||||
</label>
|
Remember me
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" class="btn btn-primary">Sign in</button>
|
<button type="submit" class="btn btn-primary">Sign in</button>
|
||||||
</form>
|
</form>
|
||||||
@ -740,11 +742,13 @@ Put a form within a dropdown menu, or make it into a dropdown menu, and use [mar
|
|||||||
<label for="exampleDropdownFormPassword2">Password</label>
|
<label for="exampleDropdownFormPassword2">Password</label>
|
||||||
<input type="password" class="form-control" id="exampleDropdownFormPassword2" placeholder="Password">
|
<input type="password" class="form-control" id="exampleDropdownFormPassword2" placeholder="Password">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-check">
|
<div class="form-group">
|
||||||
<input type="checkbox" class="form-check-input" id="dropdownCheck2">
|
<div class="form-check">
|
||||||
<label class="form-check-label" for="dropdownCheck2">
|
<input type="checkbox" class="form-check-input" id="dropdownCheck2">
|
||||||
Remember me
|
<label class="form-check-label" for="dropdownCheck2">
|
||||||
</label>
|
Remember me
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" class="btn btn-primary">Sign in</button>
|
<button type="submit" class="btn btn-primary">Sign in</button>
|
||||||
</form>
|
</form>
|
||||||
|
@ -715,11 +715,13 @@ Add the `disabled` attribute to a `<fieldset>` to disable all the controls withi
|
|||||||
<option>Disabled select</option>
|
<option>Disabled select</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-check">
|
<div class="form-group">
|
||||||
<input class="form-check-input" type="checkbox" id="disabledFieldsetCheck" disabled>
|
<div class="form-check">
|
||||||
<label class="form-check-label" for="disabledFieldsetCheck">
|
<input class="form-check-input" type="checkbox" id="disabledFieldsetCheck" disabled>
|
||||||
Can't check this
|
<label class="form-check-label" for="disabledFieldsetCheck">
|
||||||
</label>
|
Can't check this
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" class="btn btn-primary">Submit</button>
|
<button type="submit" class="btn btn-primary">Submit</button>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user