E004 - Herst/bootlint-ng GitHub Wiki

Note: Below is the original page from the Bootlint documentation, some of the info here might not apply to Bootlint-NG!


E004

Containers (.container and .container-fluid) are not nestable

Bootstrap containers (i.e. .container and .container-fluid) cannot be nested.

Wrong:

<div class="container">
  <div class="container">
    ...
  </div>
</div>

Also Wrong (doesn't matter whether the container is fluid or not):

<div class="container-fluid">
  <div class="container-fluid">
    ...
  </div>
</div>

Still Wrong (descendants still count as nesting):

<div class="container">
  <div class="foobar">
    ...
        <div class="container">
          ...
        </div>
    ...
  </div>
</div>

Wrong Again (mixing the two types of container doesn't make it right):

<div class="container-fluid">
  <div class="container">
    ...
  </div>
</div>
⚠️ **GitHub.com Fallback** ⚠️