@extends('layouts.vertical', ['title' => 'Form Layouts', 'topbarTitle' => 'Form Layouts']) @section('css') @endsection @section('content')
Here’s a quick example to demonstrate Bootstrap’s form styles. Keep reading for documentation on required classes, form layout, and more.
Create horizontal forms with the grid by adding the
.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.
Use the .row-cols-lg-auto, .g-3 &
.align-items-center class to display a series of labels, form controls,
and buttons on a single horizontal row. Form controls within inline forms vary
slightly from their default states. Controls only appear inline in viewports that
are at least 576px wide to account for narrow viewports on mobile devices.
Be sure to use .col-form-label-sm or
.col-form-label-lg to your <label>s or
<legend>s to correctly follow the size of
.form-control-lg and .form-control-sm.
By adding .row & .g-2, you can have control over the
gutter width in as well the inline as block direction.