A container in a structural element that wraps and contains other elements, providing layout and alignment control. It helps maintain consistency and responsiveness in design across various devices and screen sizes.
| Breakpoint | Max Width | Padding |
|---|---|---|
| default | 100% | padding: 0 1rem; |
| sm | 576px | * |
| md | 768px | * |
| lg | 992px | * |
| xl | 1200px | * |
| xxl | 1500px | * |
The .container class adjusts responsively, maintaining a fixed width that changes at different breakpoints.
<div class="container">
<!-- ... -->
</div>
The .container-fluid class is always at maximum width (100%) regardless of the screen size making it suitbale for fluid layouts.
<div class="container-fluid">
<!-- ... -->
</div>
On this page