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 margins | Full width |
| For normal pages | For 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 |