From f660bd42052949124a2c3342dadcdb12fd979f02 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 13 Oct 2013 19:36:39 -0700 Subject: [PATCH] clarify more grid stuff, specifically 100% fluid designs; fixes #10711 --- css.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/css.html b/css.html index 9a5e56cf90..12032c497a 100644 --- a/css.html +++ b/css.html @@ -79,10 +79,16 @@ base_url: "../"
  • Use rows to create horizontal groups of columns.
  • Content should be placed within columns, and only columns may be immediate children of rows.
  • Predefined grid classes like .row and .col-xs-4 are available for quickly making grid layouts. LESS mixins can also be used for more semantic layouts.
  • +
  • Columns create gutters (gaps between column content) via padding. That padding is offset in rows for the first and last column via negative margin on .rows.
  • Grid columns are created by specifying the number of twelve available columns you wish to span. For example, three equal columns would use three .col-xs-4.
  • Look to the examples for applying these principles to your code.

    +
    +

    Grids and full-width layouts

    +

    Folks looking to create fully fluid layouts (meaning your site stretches the entire width of the viewport) must wrap their grid content in a containing element with padding: 0 15px; to offset the margin: 0 -15px; used on .rows.

    +
    +

    Media queries

    We use the following media queries in our LESS files to create the key breakpoints in our grid system.

    {% highlight css %}