Bootstrap 5 Containers
Bootstrap 5 Containers
Containers are the most basic layout element in Bootstrap. They are used to contain, pad, and (sometimes) center the content within them. Bootstrap comes with three different containers:
Three Different Containers are:-
- .container:- which sets a max-width at each responsive breakpoint.
- .container-fluid:- which is width: 100% at all breakpoints.
- .container-{breakpoint}:- which is width: 100% until the specified breakpoint.
For your Inforamtion:-
We can also use the .container-sm|md|lg|xl
classes to determine when the container should be responsive. The max-width
of the container will change on different screen sizes/viewports. These are:
Further Explanation:-
Class | Extra small <576px |
Small ≥576px |
Medium ≥768px |
Large ≥992px |
Extra large ≥1200px |
XXL ≥1400px |
---|---|---|---|---|---|---|
.container-sm | 100% | 540px | 720px | 960px | 1140px | 1320px |
.container-md | 100% | 100% | 720px | 960px | 1140px | 1320px |
.container-lg | 100% | 100% | 100% | 960px | 1140px | 1320px |
.container-xl | 100% | 100% | 100% | 100% | 1140px | 1320px |
.container-xxl | 100% | 100% | 100% | 100% | 100% | 1320px |
Code Explanation
All Tutorials related to Bootstrap Tutorials
Bootstrap 5 Introduction
Bootstrap 5 CDN
Bootstrap 5 Colors
Bootstrap 5 Containers
Bootstrap 5 Typography
Bootstrap 5 Tables
Bootstrap 5 Figures
Bootstrap 5 Images
Bootstrap 5 Accordion
Bootstrap 5 Alerts
Bootstrap 5 Badges
Bootstrap 5 Breadcrumb
Bootstrap 5 Buttons
Bootstrap 5 Button Groups
Bootstrap 5 Cards
Bootstrap 5 Carousel
Bootstrap 5 Collapse
Bootstrap 5 Dropdown
Bootstrap 5 List Group
Bootstrap 5 Modal
Bootstrap 5 Navs
Bootstrap 5 Tabs
Bootstrap 5 Navbar
Bootstrap 5 Offcanvas
Bootstrap 5 Pagination
Bootstrap 5 Popovers
Bootstrap 5 Progress Bar
Bootstrap 5 Scrollspy
Bootstrap 5 Spinners
Bootstrap 5 Toasts
Bootstrap 5 Tooltip
Bootstrap 5 Text Truncation
Bootstrap 5 Links
Bootstrap 5 Background
Bootstrap 5 Shadows
Bootstrap 5 Text Align
Bootstrap 5 Overflow
Bootstrap 5 Form Control
Bootstrap 5 Select
Bootstrap 5 Checkbox & Radio
Bootstrap 5 Range
Bootstrap 5 Input Group
Bootstrap 5 Floating Labels