HTML & CSSIntermediate

Learn Bootstrap

Build responsive sites quickly with Bootstrap's component library and grid system.

4 hours
4 key concepts
2 in-depth sections
Official Docs

0 of 4 concepts completed (0%)

What You'll Learn

1.Grid System

Bootstrap's 12-column grid uses rows and columns with responsive breakpoints.

html
<div class="container">
  <!-- 3-column layout on desktop, stacks on mobile -->
  <div class="row g-4">
    <div class="col-12 col-md-4">
      <div class="card h-100">Column 1</div>
    </div>
    <div class="col-12 col-md-4">
      <div class="card h-100">Column 2</div>
    </div>
    <div class="col-12 col-md-4">
      <div class="card h-100">Column 3</div>
    </div>

Main content

Equal
Equal
Half width
```

2.Components & Utilities

html
<!-- Alert -->
<div class="alert alert-success alert-dismissible fade show" role="alert">
  <strong>Success!</strong> Your profile has been updated.
  <button type="button" class="btn-close" data-bs-dismiss="alert"></button>

...
Card Title

Description here.

Go somewhere

```

Code Example

<!-- Bootstrap grid -->
<div class="container">
  <div class="row">
    <div class="col-md-6">
      <h2>Column 1</h2>
    </div>
    <div class="col-md-6">
      <h2>Column 2</h2>
    </div>
  </div>
</div>

<!-- Bootstrap button -->
<button class="btn btn-primary btn-lg">Click Me</button>

Pro Tips

  • 1Bootstrap's grid is 12 columns. col-md-4 takes 4/12 = one third. Three col-md-4 elements fill a row perfectly.
  • 2Use Bootstrap utility classes (mt-3, p-4, d-flex) instead of custom CSS for spacing and layout it keeps your HTML as the single source of truth.
  • 3Customize Bootstrap via CSS variables or by importing only the modules you need don't ship the entire library if you use 20% of it.
  • 4Bootstrap's JS components (modals, dropdowns, tooltips) require the bundled JS or individual imports. Don't forget to include it.

Topics Covered

BootstrapFrameworkGrid System

Continue Learning

Explore the official documentation and deepen your knowledge with real-world practice.

Explore the Full Portfolio

This is the complete portfolio of Sufi Khan Sulaiman, a technology leader specialising in B2B commerce and digital automation. Start from the Home page for the overview, then move through two decades of career experience across FLIR Systems, Lorex Technology, and 1c Platform, and the full catalogue of project case studies spanning headless commerce migrations, AI recommendation engines, and multi-channel fulfilment systems.

The skills and certifications page maps the technical and leadership capabilities behind the work, while the articles and the knowledge base break down the thinking into actionable frameworks. For hands-on learning, the tutorials and applications sections cover practical builds from front-end fundamentals to full-stack web apps.

For consulting engagement, the expertise page outlines service offerings, the ecommerce hub covers platform architecture and automation strategy, and the ecommerce guide (PDF) is a downloadable 55-page field manual. When you are ready to talk, the contact page is the direct line.