dingledow / stretch-css

A super simple responsive CSS grid system framework.

Home Page:dingledow.github.io/stretch-css/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stretch CSS Gridsystem

Stretch is a super simple responsive CSS grid system. For now, it is a 12 column grid that can have any gutter size you want. Columns can be pushed and pulled to make manoeuvring content really easy and breakpoints can be customised. The naming of classes is readable and easy to understand.

I hope people find this helpful.

Install

bower install stretch-css

Getting Started

Stretch can be implemented in two ways:

  1. Use the stretch.scss stylesheet in this repository and compile it to CSS. This is the best way to create a customised version of Stretch;
  2. Or, link the stretch.css file in your HTML document's head:

<link rel="stylesheet" href="css/stretch.css">

To use the grid, firstly create an HTML element with a class of .row. Within the row, create a column with the class .col__x-12, where x equals the number of columns you want to take up.

<div class="container">

  <div class="row">

    <div class="col__12-12">
      This is a column that takes up all 12 out of 12 columns.
    </div>

    <div class="col__6-12">
      This is a column that takes up 6 out of 12 columns.
    </div>

    <div class="col__md-6-12 col__sm-12-12">
      This is a column that takes up 6 out of 12 columns for devices ≥768px
      wide.  For devices <768px it takes up all 12 out of 12 columns.
    </div>

  </div>

</div>

About

A super simple responsive CSS grid system framework.

dingledow.github.io/stretch-css/


Languages

Language:CSS 56.2%Language:HTML 42.2%Language:JavaScript 1.6%