Guides

Bootstrap guides & tutorials

Practical, no-nonsense guides to customizing Bootstrap 5.

Basics

What is Bootstrap? A Beginner Guide for 2026

Bootstrap is a free, open-source CSS framework for responsive, mobile-first sites. Learn what it does, what is new in 5.3, and how to get started.

4 min read
Comparisons

Bootstrap vs Tailwind CSS: Which Should You Use?

A practical comparison of Bootstrap and Tailwind CSS: component framework versus utility-first, speed, design control, CSS size, and when to choose each.

8 min read
AI theming

AI Prompts for Bootstrap Themes: From Brief to Sass

Use AI to explore Bootstrap theme ideas, then turn the best direction into real Bootstrap 5 Sass variables for colors, type, spacing, radius, and dark mode.

8 min read
Customization

How to Customize Bootstrap 5: The Complete Guide

The complete guide to customizing Bootstrap 5: the two ways to do it, what to change first, the Sass variable system, and exporting your theme.

9 min read
Customization

Bootstrap 5 Colors: Classes, Hex Codes and Customization

Every Bootstrap 5 color and color class: hex codes for primary to dark, text-bg, subtle and emphasis classes, and how to change them with Sass.

7 min read
Customization

Bootstrap Sass Variables and the Override Order

How Bootstrap 5 Sass variables work: the !default system, the tiers and maps, Sass vs CSS variables, and the import order to override them correctly.

8 min read
Customization

How to Change Fonts and Typography in Bootstrap 5

Swap the Bootstrap font, load a Google Font, and tune the type scale: $font-family-base, $font-size-base, headings, and line height, visually or with Sass.

5 min read
Color modes

How to Add Dark Mode to a Bootstrap 5 Theme

Enable Bootstrap 5.3 dark mode with data-bs-theme, add a light and dark toggle, customize the dark palette, and even build your own color mode.

4 min read
AI UI

How to Build an AI Chat Interface with Bootstrap 5

Build an AI chat interface with Bootstrap 5 using cards, forms, badges, spinners, offcanvas settings, accessible loading states, and themeable chat bubbles.

8 min read
Customization

How to Export a Custom Bootstrap Theme and Use It

Ship your custom Bootstrap theme as Sass source for a build pipeline, or as compiled CSS you link with no build step, and where each file goes.

6 min read
Customization

How to Shrink Bootstrap's CSS (Import Only What You Need)

Bootstrap's full CSS is about 28 KB gzipped. Cut it down by importing only the partials you use, purging unused classes, and trimming utilities.

6 min read
Layout

Bootstrap Flex Classes Cheat Sheet (d-flex, justify-content)

Every Bootstrap 5 flex class in one table: d-flex, justify-content, align-items, flex-wrap, gap, order, d-md-flex, plus fixes when they don't work.

5 min read
Layout

Bootstrap Margin and Padding Cheat Sheet (mt-3, px-4, gap)

Every Bootstrap 5 margin and padding class in one table: mt-3, pb-2, ms-auto, px-4, gap, negative margins, responsive spacing, and the 0 to 5 scale in rem.

6 min read
Layout

How to Center a Div in Bootstrap: Horizontal and Vertical

Center a div in Bootstrap 5 in one line: mx-auto horizontally, d-flex with justify-content-center and align-items-center for both, plus grid and text options.

6 min read
Layout

Bootstrap Grid System Explained

How the Bootstrap 5 grid works: the 12-column flexbox model, containers, rows and columns, breakpoints, offsets, gutters, and nesting.

4 min read
Hosting

Where to Host Your HTML Website

Where to host a static HTML website the easy way: what static hosting is, what to look for, and how to publish your files in about a minute.

5 min read
Components

Bootstrap Icons: How to Install, Use, Size, and Color Them

Add Bootstrap Icons by CDN or npm, use the icon font, inline SVG or sprite, change size and color, align icons with text, and fix icons that do not show.

8 min read
Layout

Bootstrap 5 Breakpoints: Sizes, Classes, and Media Queries

Bootstrap 5 breakpoints are 576, 768, 992, 1200 and 1400px. How to use them in classes, CSS and Sass mixins, change them, and what Bootstrap 6 changes.

7 min read
Components

Bootstrap 5 Buttons: Classes, Sizes, Colors, and Examples

Every Bootstrap 5 button class with examples: colors, outline, sizes, full width, disabled, icons, groups and toggles, plus custom colors with CSS or Sass.

10 min read
Components

Bootstrap 5 Cards: Layouts, Images, Grids, and Examples

Bootstrap 5 cards with examples: images, headers, colors, responsive card grids, equal heights, horizontal and clickable cards, and customizing with Sass.

9 min read
Components

Bootstrap 5 Navbar: Responsive Examples and Customization

Build a responsive Bootstrap 5 navbar: copy-ready markup, links on the right, dark and sticky navbars, dropdowns, offcanvas menus, and toggler fixes.

9 min read
Layout

Bootstrap Container: container vs container-fluid and Widths

Bootstrap 5 containers explained: container vs container-fluid, responsive containers, max widths at every breakpoint, and how to change the width.

5 min read
Components

Bootstrap 5 Tabs: Examples, Pills, Vertical Tabs and JS

Working Bootstrap 5 tabs to copy: nav-tabs, pills and underline styles, vertical tabs, fade, opening a tab from JavaScript or a URL, and fixes.

5 min read
Components

Bootstrap 5 Footer Examples: Simple, Columns and Sticky

Copy-ready Bootstrap 5 footers: a simple bar, multi-column links, a dark footer with icons, a newsletter form, and a footer that sticks to the bottom.

5 min read
Layout

Bootstrap Borders, Rounded Corners and Shadows (5.3)

Every Bootstrap 5 border and shadow class: border sides, colors and widths, rounded-1 to rounded-5, rounded-circle, shadow-sm to shadow-lg, and defaults.

4 min read
Components

Bootstrap 5 Tooltip: Enable, Position and Style Tooltips

How to enable Bootstrap 5 tooltips with one line of JavaScript, set placement, use HTML, show them on disabled buttons, style them, and fix common errors.

4 min read
Components

Bootstrap Checkbox, Radio and Switch: Bootstrap 5 Guide

Bootstrap 5.3 checkboxes, radio buttons and switches: inline, toggle buttons, indeterminate, validation, custom colors and sizes, with copy-paste code.

4 min read
Components

Bootstrap Spinner: Loading Spinners in Bootstrap 5

Bootstrap 5.3 spinners: border and grow styles, sizes, colors, spinners in buttons, centering, overlays and showing a spinner while data loads.

4 min read
Layout

Bootstrap Images: Responsive, Rounded and Cropped Images

Bootstrap 5.3 images: img-fluid, object-fit cropping, rounded and circle images, centering, captions, responsive video embeds and fast loading.

5 min read
Components

Bootstrap Popover: How to Use Popovers in Bootstrap 5

Bootstrap 5.3 popovers: enabling them, placement, closing on the next click, hover and HTML content, disabled buttons, JavaScript methods and styling.

4 min read
Components

Bootstrap Progress Bar: Bootstrap 5 Guide with Examples

Bootstrap 5.3 progress bars: the new markup, labels, height, colors, striped and animated bars, stacked bars and updating a bar with JavaScript.

4 min read
Components

Bootstrap Toast: Notifications in Bootstrap 5

Bootstrap 5.3 toasts: showing a toast, positioning in a corner, stacking, colors, auto-hide timing, accessibility and creating toasts with JavaScript.

4 min read
Basics

React Bootstrap: Install, Components and Theming Guide

How to use React Bootstrap 2.10 with Bootstrap 5.3: install in Vite or Next.js, navbar, modal, forms, routing, custom Sass themes and dark mode.

7 min read
Components

Bootstrap Modal: Sizes, Centering, Forms and JavaScript

Bootstrap 5.3 modals: markup, sizes including the new modal-xxl, centered, scrollable and fullscreen modals, static backdrop, forms and the JS API.

6 min read
Components

Bootstrap Accordion: Bootstrap 5 Guide with Examples

Bootstrap 5.3 accordions: markup, keeping panels open, flush style, custom colors and icons, controlling panels with JavaScript and FAQ accordions.

5 min read
Components

Bootstrap Dropdown: Menus, Alignment and Hover (Bootstrap 5)

Bootstrap 5.3 dropdowns: menu items, alignment, direction, split buttons, dark menus, forms inside dropdowns, hover menus and auto-close options.

5 min read
Components

Bootstrap Select: Style Select Dropdowns in Bootstrap 5

Bootstrap 5.3 form-select: placeholders, sizes, multiple selection, validation, floating labels, custom arrows, reading values and searchable selects.

4 min read
Components

Bootstrap Pagination: Bootstrap 5 Guide with Examples

Bootstrap 5.3 pagination: active and disabled pages, previous and next, sizes, alignment, ellipses, phone layouts, styling, JavaScript and SEO.

4 min read
Components

Bootstrap Forms and Input Groups: Bootstrap 5 Guide

Bootstrap 5.3 forms: form controls, grid and horizontal layouts, inline forms, floating labels, input groups, validation and file, range and color inputs.

6 min read
Components

Bootstrap Carousel: Slides, Autoplay and Captions

Bootstrap 5.3 carousels: markup, autoplay, controls and indicators, captions, fade effect, timing, equal-height slides, JavaScript and accessibility.

5 min read
Components

Bootstrap Badge: Colors, Pills and Notification Counters

Bootstrap 5.3 badges: colors, pill and subtle badges, badges in buttons and headings, notification counters, status dots and Bootstrap 4 class changes.

4 min read
Basics

Bootstrap CDN: Latest Bootstrap 5.3.9 Links with SRI

Bootstrap 5.3.9 CDN links with integrity hashes, a starter template, Popper, RTL, ES modules, Bootstrap Icons, cdnjs links and when to use npm instead.

5 min read
Components

Bootstrap Table: Striped, Responsive and Sortable Tables

Bootstrap 5.3 tables: striped, hover, bordered and small tables, colored rows, responsive scrolling, alignment, sticky headers, and adding sorting.

5 min read
Layout

Bootstrap Columns: col, offset, order and row-cols

Bootstrap 5.3 columns explained: equal, sized and responsive columns, col-auto, offsets, reordering, row-cols card grids, gutters and nesting.

5 min read
Layout

Bootstrap Sidebar: Responsive, Fixed and Collapsible

Build a Bootstrap 5.3 sidebar: a dashboard layout that turns into an offcanvas menu on phones, a sticky sidebar, collapsible link groups and icons.

5 min read
Components

Bootstrap Alerts: Colors, Dismissible Alerts and Icons

Bootstrap 5.3 alerts: colors, links and headings, dismissible alerts, icons, showing alerts from JavaScript, accessibility and custom colors.

4 min read
Components

Bootstrap Collapse: Show and Hide Content in Bootstrap 5

Bootstrap 5.3 collapse: toggling content with buttons or links, horizontal collapse, multiple targets, collapse in forms and the JavaScript API.

4 min read
Basics

Bootstrap Typography and Text Utilities: Cheat Sheet

Bootstrap 5.3 typography: heading and display sizes, font weight, alignment, wrapping and truncation, text colors, lists, and responsive font sizes.

5 min read
Basics

Bootstrap Vue: Using Bootstrap 5 with Vue 3 and Nuxt

How to use Bootstrap 5 with Vue 3: BootstrapVue vs BootstrapVueNext, install with Vite or Nuxt, navbar, modal, forms, tables, toasts and themes.

6 min read
Comparisons

CSS Frameworks Compared: Bootstrap, Tailwind and More

The main CSS frameworks in 2026 compared: Bootstrap, Tailwind CSS, daisyUI, Flowbite, Bulma, Foundation, UIkit and Pico, with versions and usage.

6 min read
Layout

Bootstrap Landing Page Templates: Free Downloads and Guide

Free Bootstrap 5 landing page templates compared, plus a free download and a step-by-step guide to building your own landing page with Bootstrap 5.3.

8 min read
Layout

Free Bootstrap Admin Templates (2026) and How to Build One

The best free Bootstrap 5 admin and dashboard templates compared (AdminLTE, Tabler, CoreUI and more), plus how to build a dashboard with Bootstrap 5.3.

8 min read