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:
- .full (12/12 Columns)
- .one-half (6/12 Columns)
- .two-thirds (8/12 Columns)
- .one-third (4/12 Columns)
- .one-fourth (3/12 Columns)
- .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:
- .content-center-v (Vertically center content)
- .content-center-h (Horizontally center content)
- .content-end-v (Vertically align content to bottom)
- .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.