.row class to form groups and using the .col-*-* classes to specify the width of your
labels and controls. Be sure to add .col-form-label to your <label>s as well so they’re vertically
centered with their associated form controls..col to .col-auto so that your columns only take up as
much space as needed.
Put another way, the column sizes itself based on the contents..row-cols-*
classes to create responsive horizontal layouts. By adding
gutter modifier classes, we’ll have gutters in horizontal and vertical directions.
On narrow mobile viewports, the .col-12 helps
stack the form controls and more. The
.align-items-center aligns the form elements
to the middle, making the
.form-checkbox align properly.
.row
for .form-row, a variation of our standard
grid row that overrides the default column gutters for tighter and more compact
layouts.