twbs--bootstrap/docs/layout/containers.md

23 lines
678 B
Markdown
Raw Normal View History

2014-07-14 15:22:33 +00:00
---
layout: page
title: Containers
---
Bootstrap requires a containing element to wrap site contents and house our grid system. Choose from the fixed or fluid width variation.
2014-07-14 15:22:33 +00:00
Use `.container` for a responsive fixed width container. This will center content withing the viewport and apply the appropriate `width` for a given device size. **Containers *can* be nested, but be aware that most layouts don't require it.**
2014-07-14 15:22:33 +00:00
{% highlight html %}
<div class="container">
...
</div>
{% endhighlight %}
Use `.container-fluid` for a full width container, spanning the entire width of the viewport.
{% highlight html %}
<div class="container-fluid">
...
</div>
{% endhighlight %}