Bootstrap 3 docs say:
Lines must be placed in .containerfor proper alignment and filling.
Does this mean that one of their ancestors should be a container or that their immediate parent should be a container?
After looking at the examples, I think that the previous interpretation is correct, since the containers have a fixed width for certain display sizes:
@media (min-width: 1200px) {
.container {
width: 1170px;
}
...
}
And as such, they cannot be placed inside other components (e.g. .panel-bodys).
In other words, the following correct markup in Bootstrap 3?
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Title</h3>
</div>
<div class="panel-body">
<div class="row">
<div class="col-xs-6">
Col 1
</div>
<div class="col-xs-6">
Col 2
</div>
</div>
</div>
</div>
source
share