Lesson 3 of 2015%

(Progress persistence is disabled until Phase 9)

Bootstrap
Beginner

Responsive Containers

Containers are the most basic layout element in Bootstrap and are required when using our default grid system.

Responsive Containers

Containers are the most basic layout element in Bootstrap and are required when using our default grid system.

Bootstrap provides powerful, pre-built components and utilities.

Example

<div class="container bg-primary text-white p-3 mb-3">100% wide until small breakpoint</div>
<div class="container-sm bg-success text-white p-3 mb-3">100% wide until small breakpoint</div>
<div class="container-fluid bg-info text-white p-3">Always 100% wide</div>

Experiment with the code above in the Playground!

Lesson Progress

Practice This TopicTake QuizBuild a Bootstrap Project

Ready to practise?

Apply what you learned with a hands-on challenge.

Practise This Topic