Labels
New version available - Material Design for Bootstrap 5
Material Design 2.0 + latest Bootstrap 5 based on plain JavaScript (but works also with jQuery). 500+ material UI components, super simple, 1 minute installation, free templates & much more
Free DownloadBelow 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>