mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-30 08:39:56 +02:00
move containers to layout section
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
- title: Layout
|
- title: Layout
|
||||||
pages:
|
pages:
|
||||||
|
- title: Containers
|
||||||
- title: Grid
|
- title: Grid
|
||||||
sections:
|
sections:
|
||||||
- title: Introduction
|
- title: Introduction
|
||||||
|
@@ -45,23 +45,3 @@ These styles can be found within `scaffolding.less`.
|
|||||||
### Normalize
|
### Normalize
|
||||||
|
|
||||||
For improved cross-browser rendering, we use [Normalize.css](http://necolas.github.io/normalize.css/) to correct small inconsistencies across browsers and devices.
|
For improved cross-browser rendering, we use [Normalize.css](http://necolas.github.io/normalize.css/) to correct small inconsistencies across browsers and devices.
|
||||||
|
|
||||||
### Containers
|
|
||||||
|
|
||||||
Bootstrap requires a containing element to wrap site contents and house our grid system. You may choose one of two containers to use in your projects. Note that, due to `padding` and more, neither container is nestable.
|
|
||||||
|
|
||||||
Use `.container` for a responsive fixed width container.
|
|
||||||
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="container">
|
|
||||||
...
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
Use `.container-fluid` for a full width container, spanning the entire width of your viewport.
|
|
||||||
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="container-fluid">
|
|
||||||
...
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
24
docs/layout/containers.md
Normal file
24
docs/layout/containers.md
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
---
|
||||||
|
layout: page
|
||||||
|
title: Containers
|
||||||
|
---
|
||||||
|
|
||||||
|
Bootstrap requires a containing element to wrap site contents and house our grid system. You may choose from one of two containers—fixed width or fluid width—to use in your projects.
|
||||||
|
|
||||||
|
Containers *can* be nested, but be aware that most layouts don't require it.
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
{% 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 %}
|
Reference in New Issue
Block a user