The jQuery plugin for equalizing the height or width of your elements
See the codeThe jQuery plugin for equalizing the height or width of elements. See it in action ».
Call the plugin on the parent of the elements to equalize their height.
Equalize will accept any of the jQuery Dimension methods: height, outerHeight, innerHeight, width, outerWidth, innerWidth.
$('#height-example').equalize();
Equalize will now accept a settings object to get the "minimum max dimension". By setting reset to true the height/width will be removed before determining the max.
$('.parent').equalize({reset: true}); // default to height
$('.parent').equalize({equalize: 'width', reset: true});
This advanced usage is for dynamic instances where equalize is ran after elements are added or removed to maintain minimum max height or width.
Equalize the .parent's child element. See @larsbo's example.
$('.parent').equalize({children: 'p'}); // equalize height of paragraphs within .parent
$('.parent').equalize('height'); // default, same as above
$('.parent').equalize('outerHeight');
$('.parent').equalize('innerHeight');
$('.parent').equalize('width');
$('.parent').equalize('outerWidth');
$('.parent').equalize('innerWidth');
Author & copyright (c) 2012: Tim Svensen
Dual MIT & GPLv2 license
1,071 followers · starred Sep 2012
184 followers · starred Sep 2012
339 followers · starred Sep 2012
142 followers · starred Sep 2012
The jQuery plugin for equalizing the height or width of your elements
See the codeThe jQuery plugin for equalizing the height or width of elements. See it in action ».
Call the plugin on the parent of the elements to equalize their height.
Equalize will accept any of the jQuery Dimension methods: height, outerHeight, innerHeight, width, outerWidth, innerWidth.
$('#height-example').equalize();
Equalize will now accept a settings object to get the "minimum max dimension". By setting reset to true the height/width will be removed before determining the max.
$('.parent').equalize({reset: true}); // default to height
$('.parent').equalize({equalize: 'width', reset: true});
This advanced usage is for dynamic instances where equalize is ran after elements are added or removed to maintain minimum max height or width.
Equalize the .parent's child element. See @larsbo's example.
$('.parent').equalize({children: 'p'}); // equalize height of paragraphs within .parent
$('.parent').equalize('height'); // default, same as above
$('.parent').equalize('outerHeight');
$('.parent').equalize('innerHeight');
$('.parent').equalize('width');
$('.parent').equalize('outerWidth');
$('.parent').equalize('innerWidth');
Author & copyright (c) 2012: Tim Svensen
Dual MIT & GPLv2 license
1,071 followers · starred Sep 2012
184 followers · starred Sep 2012
339 followers · starred Sep 2012
142 followers · starred Sep 2012