diff options
| author | Mark Otto <[email protected]> | 2013-12-07 20:52:51 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-12-07 20:52:51 -0800 |
| commit | 6273604601c58284f49b38ae4e52533b9689437c (patch) | |
| tree | 9b0c5f07ccad5148345c5b9eafd52b87f2092373 /css.html | |
| parent | 73bc7d9f12b24ac71eed830ac1c345e890bc27c3 (diff) | |
| download | bootstrap-6273604601c58284f49b38ae4e52533b9689437c.tar.xz bootstrap-6273604601c58284f49b38ae4e52533b9689437c.zip | |
Add .container-fluid variation for full-width containers and layouts
/cc #10711 #9862
Diffstat (limited to 'css.html')
| -rw-r--r-- | css.html | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -76,7 +76,7 @@ base_url: "../" <h3 id="grid-intro">Introduction</h3> <p>Grid systems are used for creating page layouts through a series of rows and columns that house your content. Here's how the Bootstrap grid system works:</p> <ul> - <li>Rows must be placed within a <code>.container</code> for proper alignment and padding.</li> + <li>Rows must be placed within a <code>.container</code> (fixed-width) or <code>.container-fluid</code> (full-width) for proper alignment and padding.</li> <li>Use rows to create horizontal groups of columns.</li> <li>Content should be placed within columns, and only columns may be immediate children of rows.</li> <li>Predefined grid classes like <code>.row</code> and <code>.col-xs-4</code> are available for quickly making grid layouts. LESS mixins can also be used for more semantic layouts.</li> @@ -251,6 +251,16 @@ base_url: "../" </div> {% endhighlight %} + <h3 id="grid-example-fluid">Example: Fluid container</h3> + <p>Turn any fixed-width grid layout into a full-width layout by changing your outermost <code>.container</code> to <code>.container-fluid</code>.</p> +{% highlight html %} +<div class="container-fluid"> + <div class="row"> + ... + </div> +</div> +{% endhighlight %} + <h3 id="grid-example-mixed">Example: Mobile and desktop</h3> <p>Don't want your columns to simply stack in smaller devices? Use the extra small and medium device grid classes by adding <code>.col-xs-*</code> <code>.col-md-*</code> to your columns. See the example below for a better idea of how it all works.</p> <div class="bs-docs-grid"> |
