Extra small Small Medium Large X-Large XX-Large
<576px ≥576px ≥768px ≥992px ≥1200px ≥1400px
.container 100% 540px 720px 960px 1140px 1320px
.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
.container-fluid 100% 100% 100% 100% 100% 100%
Containers
Containers are the most basic layout element in Bootstrap and are required when using our default grid system. Choose from a responsive, fixed-width container (meaning its max-width changes at each breakpoint) or fluid-width (meaning it’s 100% wide all the time).
While containers can be nested, most layouts do not require a nested container.
Syntax:
<div class="container">
<!-- Content here -->
</div>
<div class="container-sm">100% wide until small breakpoint</div>
<div class="container-md">100% wide until medium breakpoint</div>
<div class="container-lg">100% wide until large breakpoint</div>
<div class="container-xl">100% wide until extra large breakpoint</div>
<div class="container">
<!-- Content here -->
</div>
Our default .container class is a responsive, fixed-width container, meaning its max-width changes at each breakpoint.
<div class="container">
<!-- Content here -->
</div>
meaning it’s 100% wide all the time
<button type="button" class="btn btn-primary">Primary</button>
<button type="button" class="btn btn-secondary">Secondary</button>
<button type="button" class="btn btn-success">Success</button>
<button type="button" class="btn btn-danger">Danger</button>
<button type="button" class="btn btn-warning">Warning</button>
<button type="button" class="btn btn-info">Info</button>
<button type="button" class="btn btn-light">Light</button>
<button type="button" class="btn btn-dark">Dark</button>
<button type="button" class="btn btn-link">Link</button>
Code Example |
---|
Css :: Background Animation onHover |
Css :: css responsive tabs |
Css :: outline |
Css :: css dark blue |
Css :: 3d rotating text css |
Css :: how to lighten the color of text in html |
Css :: interfaces in golang |
Css :: online animation maker css |
Css :: adminlte.min.css.map error |
Css :: style class css |
Css :: sass color functions |
Css :: content-visibility |
Css :: order CSS properties |
Css :: pading |
Css :: circle progress bar css |
Css :: grid all items same height |
Css :: css pseudo-elements |
Css :: WordPress Permalink for bread crumbs |
Css :: Reference WP media file on child theme CSS file |
Css :: form style popup css |
Css :: target id in media query |
Css :: css animation click |
Css :: ubuntu toggle always on top |
Css :: why color is? |
Css :: text-decoration not working in microsoft mail |
Css :: block property in css |
Css :: how to some of the list and show some in css |
Css :: jitsi meet index.html add css version |
Css :: empty rulesets css |
Css :: style placeholder |