SyntaxStudy
Sign Up
Home Bootstrap Reference

Bootstrap Reference

21 entries — click any item for full details and examples

Grid System

Name Description
.container A responsive fixed-width container. Centers content and provides horizontal padding. Use .container-fluid for full width...
.row Creates a horizontal group of columns using flexbox. Must be placed inside a .container.
.col-* Grid column classes. Numbers 1-12 define width. Breakpoints: xs (default), sm, md, lg, xl, xxl.

Utilities

Name Description
d-* (display) Control display property at any breakpoint. Values: none, block, inline, inline-block, flex, grid, table.
p-* / m-* (spacing) Margin (m) and padding (p) utilities. Sizes 0-5 and auto. Directions: t, b, s, e, x, y, or all sides.
w-* / h-* (sizing) Width and height utilities as percentages: 25, 50, 75, 100, auto. Viewport: vw-100, vh-100.
rounded / shadow / border Utility classes for border radius, shadows, and borders.
position utilities Position utility classes. Values: static, relative, absolute, fixed, sticky. Combined with top/start/end/bottom.

Typography

Name Description
Display headings Extra-large headings for hero sections. Larger and lighter weight than default h1-h6.
text-* (alignment & transform) Text alignment, transformation, and overflow utilities.

Colors

Name Description
text-* (colors) Apply theme colors to text. Available: primary, secondary, success, danger, warning, info, light, dark, muted.
bg-* (backgrounds) Apply theme background colors to any element.

Components

Name Description
.btn Bootstrap button styles. Combine .btn with .btn-{variant} and optionally .btn-sm or .btn-lg.
.card A flexible content container with options for headers, footers, images, and body.
.navbar A responsive navigation header. Use .navbar-expand-{bp} to set the collapse breakpoint.
.modal A dialog overlay for lightboxes, user notifications, or custom content. Requires Bootstrap JS.
.alert Provides contextual feedback messages for user actions.
.badge Small count and labelling component. Adapts to parent element size.
.form-control / .form-label Style form controls to look consistent and Bootstrap-themed.

Flexbox Utilities

Name Description
justify-content-* / align-items-* Flexbox alignment utilities for distributing and aligning items along main and cross axes.
gap-* / flex-wrap gap-* adds spacing between flex items; flex-wrap allows items to wrap to a new line.