Just a CSS Flexbox Grid System

Subscribe to updates I use gridlex

Statistics on gridlex

Number of watchers on Github 956
Number of open issues 22
Average time to close an issue 13 days
Main language HTML
Average time to merge a PR 3 days
Open pull requests 2+
Closed pull requests 1+
Last commit 4 months ago
Repo Created about 2 years ago
Repo Last Updated 3 months ago
Size 389 KB
Organization / Authordevlint
Latest Release2.3.1
Page Updated
Do you use gridlex? Leave a review!
View open issues (22)
View gridlex activity
View on github
Latest Open Source Launches
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating gridlex for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)


Just a Flexbox Grid System

Join the chat at v. 2.3.1

Based on Flexbox (CSS Flexible Box Layout Module), Gridlex is a very simple css grid system to quickly create modern layouts and submodules.

The concept is simple: you need to wrap your .col in a .grid.

What can we expect?

  • Basically each column is the same width as every other cell in the grid.
  • But you can add sizing classes to individual columns.
  • For responsive designs, you can add classes based on media-queries.
  • Top, bottom, or middle. For the grid. And for the columns.
  • Grids can be nested. Always. Directly in a column.

Less, Sass, CSS?

I just wanna use it in my page!

To use Gridlex out of the box, call the gridlex.min.css file in your project :

Via cdnjs:

<link rel="stylesheet" href="">

Via jsdelivr:

<link rel="stylesheet" href="">

I want to include it in my source files!

Because I'm working with Less, Gridlex comes first in Less (with less-compilation Grunt task).

But there is the same version in Sass in the src folder.

Include gridlex/src/gridlex.less or gridlex/src/gridlex.scss

Install via Npm

npm install gridlex --save

Install via Bower

bower install gridlex --save

3 ways to use Gridlex

1- The basic. Just add a class .grid-* (from -1 to -12)

<div class="grid-1">
    <div class="col">...</div>

2- The precise. Compose cell by cell (with class like .col-*)

<div class="grid">
    <div class="col-12">...</div>

3- The automatic. Just add number of cells you want in the grid (.grid > .col)

<div class="grid">
        <div class="col">...</div>
        <div class="col">...</div>

Gridlex and media-queries

Because of responsive, you sometimes need to change the size of columns: with this keys as classes you can control your layout by media-queries.

Columns can be hidden at breakpoints using _*-0 (e.g. col-4_md-6_sm-0)

CSS Media Query Applies Usage
@media screen and (max-width: 35.5em) Max 568px _xs-*
@media screen and (max-width: 48em) Max 768px _sm-*
@media screen and (max-width: 64em) Max 1024px _md-*
@media screen and (max-width: 80em) Max 1280px _lg-*

See more :

gridlex open issues Ask a question     (View All Issues)
  • 10 months equalHeight not working in Safari Mac
  • 10 months Websites build with Gridlex
  • 10 months Element not visibility before sm-0 and md-0
  • 11 months Incorrect working grid-* with fixed cols
  • 12 months changelog?
  • about 1 year Custom gutter width
  • about 1 year Some SASS changes
  • about 1 year [Idea] Specify differents actions on breakpoint
  • over 1 year Add a helper to max height window
  • over 1 year Feature Request: Semantic Option
  • over 1 year Custom Class Names and Breakpoints (scss)
gridlex open pull requests (View All Pulls)
  • noBottom and col padding-bottom
  • Fix typo 'gl-*-_md-0' to 'gl-*_md-0'
gridlex list of languages used
gridlex latest release notes
2.3.1 Version 2.3.1

Change version to 2.3.1 to fix npm error version

2.3.0 Version 2.3.0

Thanks to @paztis, you can know choose the selector you want to use. ie: <div class="myModule grid col-12_sm6"> can become <div class="myModule" gridlex="grid col-12_sm6">

You can change the selector in sass/less file: @gl-attributeName. By default, Gridlex will use class attribute.

2.2.5 Version 2.2.5

Fix issue #43

Other projects in HTML