Bootstrap Container

Bootstrap has two container classes to choose:
1. The ‘.container’ class provides a responsive fixed width container.
2. The ‘.container-fluid’ class provides a full width container spanning the entire width.

Tips: You cannot put .container inside another .container.

Fixed Width Example:
<div class="container">
    <h1>Fixed Width Container Example</h1>
    <p>This is some text.</p>
</div>

Fluid Width Example:
<div class="container-fluid">
    <h1>Fluid Width Container Example</h1>
    <p>This is some text.</p>
</div>

Share this

Related Posts