This repository has been archived by the owner on Feb 1, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 312
E004
XhmikosR edited this page Nov 1, 2014
·
3 revisions
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>
Bootlint documentation wiki content is licensed under the CC BY 3.0 License, and based on Bootstrap's docs which are copyright Twitter, Inc.