Bootstrap 5 UI Tutorial

Build fast, responsive sites with Bootstrap 5

BS5 Containers

Bootstrap 5 Containers

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

Bootstrap 5 requires a containing element to wrap site contents.

Two Container Classes:

  • .container class provides a responsive fixed width container
  • .container-fluid class provides a full width container, spanning the entire width of the viewport

Try It Yourself

Edit the code below and click Run to see the result live.

Source Code
Result
Topics