Skip to content
Justice Tech School

Containers

A container centres and pads your content. .container has fixed widths per breakpoint, .container-fluid is always 100 percent wide, and .container-md becomes fixed from the md breakpoint up.

Example
<div class="container">Fixed width</div>
<div class="container-fluid">Full width</div>
<div class="container-lg">Fluid below lg</div>

Exercise

Full width container class.

<div class="container-">

Quiz Test

Which container spans the whole width?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.