Press "Enter" to skip to content

A Lightweight 12-Column CSS Grid System Built with CSS Grid and LESS

Less Grid Boilerplate is a lightweight CSS grid system with 12 columns designed with CSS and less.

12 column grid generator, responsive grid layout examples, the bootstrap grid system is based on how many columns, css grid layout examples, grid template columns

The Classes

The following classes are used to set the width of your columns:

  1. .full (12/12 Columns)
  2. .one-half (6/12 Columns)
  3. .two-thirds (8/12 Columns)
  4. .one-third (4/12 Columns)
  5. .one-fourth (3/12 Columns)
  6. .one-sixth (2/12 Columns)

Creating a <div> without one of the above classes will automatically span it 1/12 columns.

Helper Classes

Content Alignment

Aligning content is easy. The following classes will align your content vertically and horizontally, as you wish:

  1. .content-center-v (Vertically center content)
  2. .content-center-h (Horizontally center content)
  3. .content-end-v (Vertically align content to bottom)
  4. .content-end-h (Horizontally align content to right)

How to make use of it:

1. Import the Less Grid Boilerplate in your web project.

<script src="less.js"></script>
<link rel="stylesheet/less"href="main.less">

2. The only requirements are that the columns are nested in a .container and a .row. Simple and direct coding:

<div class="container">
  <div class="row">
    <div class="full">This is a full-width column.</div>
  </div>
</div>

3. To create a layout of a column with a header and footer:

<div class="container">
  <div class="row">
    <div class="full">Header</div>
  </div>
  <div class="row">
    <div class="two-thirds">Content</div>
    <div class="one-third">Sidebar</div>
  </div>
  <div class="row">
    <div class="full">Footer</div>
  </div>
</div>

Basic 12-column Grid Layout In Pure CSS/LESS, Less Grid Boilerplate Plugin/Github, grid template areas


See Demo And Download

Official Website(pixelscript-io): Click Here

This superior jQuery/javascript plugin is developed by pixelscript-io. For extra advanced usage, please go to the official website.

Be First to Comment

    Leave a Reply

    Your email address will not be published.