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


Confetti Falling Animation Effect In JavaScript | party.js

Party.js is a JavaScript library to brighten user site experience with visual effects! Celebrate success with dom confetti! The library is written in TypeScript and compiled into…


Simple jQuery Cookie Consent Plugin

jquery.cookie-consent is a simple jQuery plugin to request consent to use cookies. An easy-to-use and highly customizable cookie consent bar that informs your visitors of the use…


Timepicker JavaScript Plugin for jQuery Inspired by Google Calendar

jquery.timepicker is a lightweight jQuery timer plugin inspired by Google Calendar. It supports both mouse and keyboard navigation and weighs 5.5KB minified and compact. Features: Highly customizable…


A Lightweight, Touchable, and Responsive Angular Universal Carousel Library

ngxCarousel is a lightweight, tactile, and responsive library for creating an angular carousel. No dependencies, no more hammer. Must Read: Angular Responsive Image Slider With Lightbox Popup…


Generate a Random Number Picker In Vanilla JavaScript

Random Number Picker is a Vanilla JS-based number picker that allows you to generate a random number within a specified range. Must Read: Generating Lottery Numbers Using…


Nepali Date Picker jQuery Plugin | nepaliDatePicker

Nepali Date Picker is a customizable, easy-to-use, and input-based date picker plugin mostly based on the Nepali calendar. Users can choose a Nepali date in the navigable…