Skip to content

Instantly share code, notes, and snippets.

View cezarignat's full-sized avatar
🎯
Focusing

Cezar Mihail Ignat cezarignat

🎯
Focusing
View GitHub Profile
@cezarignat
cezarignat / equalElements.js
Last active April 12, 2021 12:30
Make all the elements the same height (using the biggest value)
/*
* Dependencies: jQuery 1.x / 2.x / 3.x
*
* Make all the elements the height of the biggest one
* elementsSelector is the general selector used to get all the elements
* that you want to equalise. e.g '#foo li'
*
* Use the extra argument to add extra pixels to the final height
*
*