576px
For example:
.container-sm .container-md .container-lg .container-xl .container-xxl
Example on website TipsMake:
Bootstrap Example
Resize the browser window to see the change.
.container-sm .container-md .container-lg .container-xl .container-xxl
As mentioned above, Bootstrap creates a series of predefined container classes to help you build the web layout you want. You can customize the predefined container classes by editing the Sass map (found in _variables.scss
) owns them:
$container-max-widths: ( sm: 540px, md: 720px, lg: 960px, xl: 1140px, xxl: 1320px );
In addition to customizing Sass, you can also create your own containers by combining Sass like the example below:
// Source mixin @mixin make-container($padding-x: $container-padding-x) { width: 100%; padding-right: $padding-x; padding-left: $padding-x; margin-right: auto; margin-left: auto; } // Usage .custom-container { @include make-container(); }
Above is good information on how to create basic containers using Bootstrap 5. Hope the article is useful to you.