The equal heights script to end all equal heights scripts. The plan is, once this one is done, I will never need to write another, as all the use cases should already be accounted for.
$(".equalHeights").equalHeights(options);
$("ul li").equalHeights({
cols: 2, // any integer > 0
accountForPadding: false, // true , false
padding: false, // true / "both", "bottom", "top", false
margin: false, // true / "both", "bottom", "top", false
animation: false, // true / "slow", "normal", "fast", false
animationCallback: undefined // callback on completion of animation
});
To view the examples view the gh-pages url: https://christopherdebeer.github.com/jquery.equalHeights.js
- padding: "both"
- margin: "both"
- accountForPadding: true
- combinations of paddings and margins
- live mode to continually update heights on change