What is the difference between container and container-fluid?

.container.container-fluid
Fixed max width at each breakpoint (540, 720, 960, 1140, 1320px)Always 100% of the screen width
Centered with auto side marginsFull width
For normal pagesFor dashboards and full width layouts

There are also responsive containers like .container-md, which are 100% wide below the breakpoint. See Containers.


Learn more about the similar topics:
Tutorials
Bootstrap Containers
Bootstrap Grid System
Bootstrap Grid: Gutters, Offset, Order and Nesting
Bootstrap Layout Example: Landing Page
Exercises & Assignments
Create a responsive three column layout with Bootstrap
Create a responsive grid of six cards
Interview Questions & Answers
What is the Bootstrap grid system?
What are the breakpoints in Bootstrap 5?
What is the difference between container and container-fluid?
What are row and col classes in Bootstrap?
What is the viewport meta tag and why is it needed for Bootstrap?
What is the mobile first approach in Bootstrap?
What are gutters in the Bootstrap grid?