Forms
All form controls automatically receive some global styling. Form elements with .form-control
are set to width: 100%;
by default. Wrap labels and controls in .form-group
for optimum spacing.
Example:
Source Code:
Sample contact form:
Source Code:
Form states and sizes:
Disabled.
Looks Good.
Please choose a username.
Source Code:
Disabled.
Looks Good.
Please choose a username.
Custom file input:
Bootstrap 4 custom file input.
Source Code:
Bootstrap 4 custom file input.
Custom radio buttons and checkboxes:
Source Code:
Custom select:
Source Code: