Bootstrap’s grid system uses a series of containers, rows, and columns to layout and align content. It’s built with flexbox and is fully responsive.
Browse / Bootstrap 5 Cheat Sheet
Bootstrap 5 Cheat Sheet
A quick reference guide for Bootstrap 5, covering its key components, classes, and utilities for building responsive web layouts.
Grid System
      
        
            Basic Structure
        
      
    
  | 
   | 
| 
   
  | 
      
        
            Columns
        
      
    
  | 
   
  | 
      
   Applies to all breakpoints.    | 
| 
   
  | 
      
   Applies to small breakpoints (≥576px).  | 
| 
   
  | 
      
   Applies to medium breakpoints (≥768px).  | 
| 
   
  | 
      
   Applies to large breakpoints (≥992px).  | 
| 
   
  | 
      
   Applies to extra large breakpoints (≥1200px).  | 
| 
   
  | 
      
   Applies to larger breakpoints (≥1400px).  | 
      
        
            Example
        
      
    
  | 
   `  | 
Components
      
        
            Buttons
        
      
    
  | 
   
  | 
      
   Base class for all buttons.  | 
| 
   
  | 
      
   Primary button style.  | 
| 
   
  | 
      
   Secondary button style.  | 
| 
   
  | 
      
   Success button style.  | 
| 
   
  | 
      
   Danger button style.  | 
| 
   
  | 
      
   Warning button style.  | 
| 
   
  | 
      
   Info button style.  | 
| 
   
  | 
      
   Light button style.  | 
| 
   
  | 
      
   Dark button style.  | 
| 
   
  | 
      
   Link button style.  | 
| 
   
  | 
      
   Outline button styles (e.g.,   | 
| 
   
  | 
      
   Large and small button sizes.  | 
      
        
            Navbars
        
      
    
  | 
   
  | 
Utilities
      
        
            Spacing
        
      
    
  | 
   
  | 
      
   Margins (e.g.,   | 
| 
   
  | 
      
   Padding (e.g.,   | 
| 
   
  | 
      
   Auto margins (e.g.,   | 
| 
   
  | 
      
   Where property is   | 
      
        
            Text
        
      
    
  | 
   
  | 
      
   Left-aligns text.  | 
| 
   
  | 
      
   Center-aligns text.  | 
| 
   
  | 
      
   Right-aligns text.  | 
| 
   
  | 
      
   Justifies text.  | 
| 
   
  | 
      
   Transforms text to lowercase.  | 
| 
   
  | 
      
   Transforms text to uppercase.  | 
| 
   
  | 
      
   Capitalizes text.  | 
| 
   
  | 
      
   Bold Text.  | 
Forms
      
        
            Form Controls
        
      
    
  | 
   
  | 
      
        
            Form Layout
        
      
    
  | 
   
  | 
      
   Use with   | 
| 
   
  | 
      
   While still functional, consider using the grid system or utilities for more flexible layouts.  |