Bootstrap Layout
Build responsive layouts with containers, rows, and columns, and learn the common Bootstrap grid pitfalls to avoid.
Introduction
Section titled “Introduction”In this tour we’ll review the key Bootstrap layout primitives (container → row → columns) and what matters in Properties. Then we’ll finish with a quick “common pitfalls” checklist.
Container
Section titled “Container”Layout is mostly about choosing the right parents (container → row → columns). Containers set the page width and align content.
tip: Start with a container, then add rows, then columns.
Container: Type
Section titled “Container: Type”In Properties, use Type to switch between a fixed container and a fluid container.
tip: If your layout feels too wide/narrow, start by checking container vs container-fluid.
Container: ID
Section titled “Container: ID”Use ID for stable hooks (testing/JS) and deterministic selection.
Rows group columns and define gutters between them.
tip: Rows are about grouping and gutters; columns are where you define widths.
Row: Columns preset
Section titled “Row: Columns preset”Use the Columns presets to quickly generate a common column layout.
Column
Section titled “Column”Columns define responsive widths (for example, full width on mobile and split on desktop).
tip: Mobile-first: start with col-12, then override at md/lg/xl only when needed.
Column: Child content
Section titled “Column: Child content”Real UI goes inside columns. Style and configure the actual content elements (text, buttons, cards) inside the column.
Wrap-up
Section titled “Wrap-up”Bootstrap layout is about the hierarchy: container → row → columns. Get that right first, then use utilities to fine-tune spacing and alignment.
Common pitfalls
Section titled “Common pitfalls”Use this checklist when the grid looks wrong or spacing feels inconsistent.
tip: Tip: design mobile-first; add md/lg overrides only when needed.
Next steps
Section titled “Next steps”Continue with a related tour or go back to the Bootstrap tours index.