Bootstrap Cheat Sheet
A searchable, printable Bootstrap 5.3 reference — grid, spacing, typography, colors, flex utilities, buttons, forms and components. Free.
Grid & layout
12<div class="container">
<div class="container-fluid">
<div class="container-md">
<div class="row">
<div class="col">
<div class="col-6">
<div class="col-md-4">
<div class="col-auto">
<div class="offset-md-2">
<div class="row g-3">
<div class="row row-cols-3">
<div class="order-2">
Spacing utilities
12m-3
mt-2
mx-auto
p-4
py-2
ms-3
me-3
ps-2
pe-2
gap-3
m-n1
p-md-5
Typography
14<h1>..<h6>
<p class="display-1">
<p class="lead">
fw-bold
fw-semibold
fst-italic
text-center
text-start
text-end
text-truncate
text-uppercase
fs-1
lh-base
font-monospace
Colors & background
10text-primary
bg-primary
bg-primary-subtle
text-primary-emphasis
text-bg-primary
link-primary
bg-opacity-50
text-body-secondary
text-body-emphasis
border-primary-subtle
Flex utilities
10d-flex
flex-row
flex-column
justify-content-between
align-items-center
flex-wrap
flex-grow-1
flex-fill
align-self-end
flex-md-row
Display & position
12d-none
d-md-block
position-relative
position-absolute
position-fixed
position-sticky
top-0 start-0
translate-middle
fixed-top
sticky-top
z-3
invisible
Sizing & borders
12w-100
w-50
h-100
mw-100
vh-100
border
border-0
border-primary
rounded
rounded-pill
rounded-circle
shadow-sm
Buttons
9<button class="btn btn-primary">
<button class="btn btn-outline-primary">
<button class="btn btn-lg">
<button class="btn btn-link">
<button class="btn-close">
<button class="btn disabled">
<button class="btn active">
<div class="d-grid"><button class="btn">
<div class="btn-group">
Forms
11<input class="form-control">
<label class="form-label">
<select class="form-select">
<div class="form-check">
<input class="form-check-input">
<div class="form-check form-switch">
<input class="form-control-lg">
<div class="input-group">
is-invalid
<div class="form-floating">
col-form-label
Components
14<div class="card">
<nav class="navbar navbar-expand-lg">
data-bs-toggle="modal" data-bs-target="#m"
data-bs-toggle="dropdown"
data-bs-toggle="collapse"
<div class="accordion">
<div class="alert alert-dismissible">
<span class="badge text-bg-primary">
<ul class="list-group">
<ul class="nav nav-tabs">
<div class="toast">
<div class="offcanvas">
<div class="spinner-border">
<nav><ul class="pagination">
Helpers & misc
11data-bs-theme="dark"
<div class="ratio ratio-16x9">
visually-hidden
visually-hidden-focusable
stretched-link
clearfix
<div class="vstack gap-2">
<div class="hstack gap-2">
<a class="icon-link">
<div class="progress">
<nav class="breadcrumb">
No entry matches “:q”.
About Bootstrap Cheat Sheet
This Bootstrap cheat sheet targets Bootstrap 5.3 and collects the class names you type all day: grid and layout, spacing utilities, typography, colors and backgrounds, flex utilities, display and position, sizing and borders, buttons, forms, components, and helpers.
Bootstrap productivity is mostly vocabulary — knowing that a class exists and what its breakpoint-aware form looks like. Each row shows a class or markup snippet with a one-line description, so the answer to “what was that utility called?” is a search away instead of a docs crawl.
The sheet is free and client-side. Filter classes live with the search box, jump between sections from the sticky table of contents, copy any snippet with one click and print the page for a reference while building layouts.
How to use Bootstrap Cheat Sheet
- Skim the sections, from Grid & layout and Spacing utilities through Components and Helpers & misc.
- Search for a utility like gap, rounded or d-flex to filter the sheet instantly.
- Jump to a section such as Flex utilities or Forms via the sticky sidebar.
- Click a class or snippet, or its copy icon, to copy it into your markup.
- Print the sheet for a class-name reference beside your editor.