Equal Height Elements in JavaScript

A lot of the time I find that I need to have several columns or elements match each other in height so that I can use an image background.

This is a simple JavaScript function should be called on load, as well as on any event. In the example below I have included a debounced resize function to adjust the height of the sidebars to match that of the article.

See the Pen eqHeight JS function by Tom Ford (@tomfordweb) on CodePen.

Leave a comment

Your email address will not be published. Required fields are marked *