Equalizer
Dependency free package to keep HTML elements with equal height!
Install
Using bower
bower install equalizer
Using npm
npm install equalizer
What is Equalizer?
Equalizer is small JavaScript file. Sometimes you need to keep some block with equal height, e.g all divs in row. Equalizer gets maximum height and set it to all blocks as min-height property.
Before equalize:
After:
How to use
<script>
tag
Import directly in HTML through After import equalizer directly in HTML it will expose in global variable named Equalizer
CommonJS (node style), e.g. using browserify
var Equalizer = ;var eq = '.row .align'; eqalign;
RequireJS (AMD)
;
Simple alignment
align;
License
The MIT License. Copyright © 2014 - 2015 Szymon Krajewski.