Bootstrap Container
Bootstrap provides a container class to add a responsive fixed width container to your content.
Syntax
To use the container class in your HTML, add the following code:
<div class="container">
<!-- Your content here -->
</div>
There are also two additional classes you can use to control the width of your container:
container-fluid
: This creates a full-width container that spans the entire width of the viewport.container-{breakpoint}
: This allows you to control the width of your container at specific breakpoints. For example, you can usecontainer-md
to make your container full width until the medium breakpoint.