mixheidth
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
jquery.mixheidth.js
readme.md

readme.md

MixHeidth - a jQuery plugin

When you call .height() or .width() on a set of elements, you normally get the result for the first element only. MixHeidth gives you a few more options for getting height or width from a set of elements. You can choose to get the maximum, minimum or total height or width from any set of elements.

Example: http://jsfiddle.net/evan/bA5uM/1/

Usage:

HTML:

<div style="height: 300px; width: 150px;"></div>
<div style="height: 200px; width: 350px;"></div>
<div style="height: 100px; width: 250px;"></div>

Javascript:

$('div').maxHeight();   // returns 300
$('div').minHeight();   // returns 100
$('div').maxWidth();    // returns 350
$('div').minWidth();    // returns 150
$('div').totalWidth();	// returns 750
$('div').totalHeight();	// returns 600