]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
move containers to layout section
authorMark Otto <otto@github.com>
Mon, 14 Jul 2014 15:22:33 +0000 (08:22 -0700)
committerMark Otto <otto@github.com>
Mon, 14 Jul 2014 15:22:33 +0000 (08:22 -0700)
docs/_data/nav.yml
docs/components/scaffolding.md
docs/layout/containers.md [new file with mode: 0644]

index a66f6e4a3f7a31b55d93a715106b5c47cea65b4d..1095d386ca852c94a73b44086cbd358260e79ca6 100644 (file)
@@ -18,6 +18,7 @@
 
 - title: Layout
   pages:
+    - title: Containers
     - title: Grid
       sections:
         - title: Introduction
index b532ba4410b6974a7309a79e4385295af984cc7f..84a22e618f2b1c4d8e8899ed8245a4f4e787b0b0 100644 (file)
@@ -45,23 +45,3 @@ These styles can be found within `scaffolding.less`.
 ### Normalize
 
 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 %}
diff --git a/docs/layout/containers.md b/docs/layout/containers.md
new file mode 100644 (file)
index 0000000..029cc18
--- /dev/null
@@ -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 %}