From: Mark Otto Date: Mon, 14 Oct 2013 02:36:39 +0000 (-0700) Subject: clarify more grid stuff, specifically 100% fluid designs; fixes #10711 X-Git-Tag: v3.0.1~39^2~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f660bd42052949124a2c3342dadcdb12fd979f02;p=thirdparty%2Fbootstrap.git clarify more grid stuff, specifically 100% fluid designs; fixes #10711 --- 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 %}