Skip to content

Layout

Arrange fields with stacked, grid, horizontal and inline form layouts. Combine fieldsets, cards and action bars to build long forms that stay easy to follow on any screen size.

1Stacked form

The simplest layout: one field per row with mb-3 spacing.

2Grid row

Two equal columns from the md breakpoint, stacked below it.

3Address grid with gutters

row g-3 with mixed column widths builds a complete address form.

4Horizontal form

Labels in col-sm-3 columns with col-form-label, fields in the remaining width.

Account type

5Horizontal label sizes

col-form-label-sm and -lg align labels with small and large inputs.

6Column sizing

Give one column a fixed width (col-7) and let the others share the rest.

7Auto-sizing columns

col-auto columns shrink to their content and wrap as needed.

@

8Inline form

row-cols-lg-auto puts fields on one line from the lg breakpoint.

9Fieldsets with legends

Fieldsets group related fields under a visible legend.

Company
Main contact

10Two-column settings

Section title and description on the left, fields on the right.

Profile

This information is visible to your team.

Account

Used for sign-in and receipts.

11Card form

A form framed by a card with header and a footer holding the actions.

New account

12Checkout sections

Numbered sections separated by dividers keep a long checkout readable.

1Contact


2Shipping


3Payment

13Filter sidebar

A narrow vertical form for catalogue filters.

Filters

Category

14Toolbar form

A flex toolbar that wraps fields and actions onto new lines on phones.

15Form in a dropdown

A sign-in form inside a dropdown menu for headers and navbars.

16Step form

A progress indicator above the current step of a multi-step form.

Step 2 of 4 - Your company50%

17Profile with avatar column

Avatar and upload button beside the profile fields, stacking on phones.

Elena Kowalski

18Responsive breakpoints

One column on phones, two on tablets, three on desktops - col-sm-6 col-lg-4.

19Form with action bar

A bottom bar separated by a border holds secondary and primary actions.

Draft saved just now

20Disabled fieldset

Disabling a fieldset disables every control inside it at once.

Billing is managed by your organisation.