/milo

Pure javascript grid, a fallback for browsers that don't support column-count

Primary LanguageJavaScript

Milo

Milo

A small pure javascript grid that provides as a nice fallback to browsers that don't currently support column-count such as IE8, IE9

Simple usage:

Check out the demo

Use browserify for client commonjs require

npm install -g browserify

var Milo = require('./milo');

var milo = new Milo({
    container: '.grid'
});

window.addEventListener('load', milo.buildGrid);

HTML can be formatted like so:

<div class="grid">
    <div class="grid-item">...</div>
    <div class="grid-item">...</div>
    <div class="grid-item">...</div>
    <div class="grid-item">...</div>
    ...
</div>