AdjustHeights Set all elements in a class to have same height with vanilla js Use the adjustHeights() function to loop trough all elements with the class and give it the same height. It takes care of the resize event. adjustHeights("classname");