Labels
This UI Kit is dedicated to Bootstrap 4 & Material Design.
Discover the latest Kit for Bootstrap 5 & Material Design 2.0! GET BOOTSTRAP 5 KIT FOR FREE
Discover the latest Kit for Bootstrap 5 & Material Design 2.0! GET BOOTSTRAP 5 KIT FOR FREE
Below is a complete list of <label>
class options supported by Material Design for Bootstrap:
Classes | Notes |
---|---|
.bmd-label-static
|
Statically positioned above the input |
.bmd-label-placeholder
|
Renders a
|
.bmd-label-floating
|
Animated combination of placeholder and label:
|
Contents
Styles
<form>
<fieldset class="form-group">
<label for="exampleInputEmail1" class="bmd-label-static">label-static</label>
<input type="email" class="form-control" id="exampleInputEmail1" placeholder="placeholder text">
<span class="bmd-help">We'll never share your email with anyone else.</span>
</fieldset>
<fieldset class="form-group">
<label for="exampleInputEmail1" class="bmd-label-floating">label-floating</label>
<input type="email" class="form-control" id="exampleInputEmail1">
<span class="bmd-help">We'll never share your email with anyone else.</span>
</fieldset>
<fieldset class="form-group">
<label for="exampleInputEmail1" class="bmd-label-placeholder">label-placeholder</label>
<input type="email" class="form-control" id="exampleInputEmail1">
<span class="bmd-help">We'll never share your email with anyone else.</span>
</fieldset>
</form>