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>

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 class="row">
    <div class="two-thirds">Content</div>
    <div class="one-third">Sidebar</div>
  <div class="row">
    <div class="full">Footer</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.

Related Posts


Adding Zoom-on-Wheel and Pan-on-Drag to Inline SVG Elements

Vanilla-js module for adding zoom and panning behavior when dragging to SVG embedded elements. A lightweight Vanilla JavaScript plugin that enables zoom and pan functions on an…


Sorting HTML Table Vanilla JavaScript Library | Sortable.js

Sortable – Small JS vanilla table sorter makes any table with class = “sortable“, er, sortable. That is, the user can click the table header and change…


WYSIWYG Rich Text Editor With jQuery And FontAwesome | RichText

RichText jQuery implementation for WYSIWYG Rich Text Editor which uses Font Awesome Iconic Font for editor icons. It is licensed under AGPL-3.0. Initialize editor Simply call .richText() on your jQuery(‘textarea’) or jQuery(‘input’)…


[Autocomplete] Email Domain Suggestions Like Gmail, Outlook, or More | email-genie

Email Genie allows auto-completion in the email field by providing a list of domain suggestions (gmail.com, outlook.com, etc.). This package is lightweight, flexible, compatible with libraries (jQuery,…


[Generator] JavaScript Library for Creating Squircley Magic ✨ | squircley.js

squircley.js is the core magic of Squirclular ✨ from https://squircley.app wrapped in a simple 0-dependency JavaScript library. squircley.js can generate SVG files, add square backgrounds to DOM…