Bootstrap: Getting Started
Build responsive websites with Bootstrap framework fundamentals
Bootstrap Framework Overview
Bootstrap's core feature is a grid system for creating columns and rows. Grids help keep a design consistent and make it easier to be responsive across different device sizes.
Initial Bootstrap Setup Process
Download Files
Get Bootstrap files from getbootstrap.com with CSS, JS, and documentation
Add Title Tag
Include page title in HTML head section for proper document structure
Link CSS
Connect Bootstrap CSS file to enable pre-built component styling
Bootstrap requires a specific nested structure: container > row > column. This hierarchy is essential for proper grid functionality and responsive behavior.
Essential Bootstrap Classes
Container
Wraps all page content and provides proper width constraints. Foundation of Bootstrap layout system.
Row
Groups columns together and ensures proper alignment. Required parent element for column structure.
img-responsive
Makes images scale automatically with browser window size. Critical for mobile-friendly designs.
Bootstrap Grid Layout Distribution
Device Breakpoint Comparison
| Feature | Device Size | Breakpoint | Class Code |
|---|---|---|---|
| Extra Small (Phones) | < 768px | xs | |
| Small (Tablets) | 768px+ | sm | |
| Medium (Desktops) | 992px+ | md | |
| Large (Desktops) | 1200px+ | lg |
The well component provides a simple inset effect with light gray background and subtle border to visually separate content sections without custom CSS.
Footer Implementation Steps
Create Footer Row
Add new row container below main content with proper footer semantic tag
Add Copyright Section
Include business name and rights statement using Bootstrap's small text styling
Configure Social Links
Transform list into navigation using nav-pills class with right alignment
The navbar automatically collapses on smaller screens, creating a hamburger menu icon that expands when clicked. This responsive behavior requires both Bootstrap CSS and JavaScript.
Navbar Setup Requirements
Use simplified version to avoid unnecessary complexity
Include brand name and relevant site sections
Required for mobile menu toggle functionality
Key Takeaways
