Simple Javascript function for equalizing the heights on a set of elements