I have a set of div
containers positioned in different columns within a grid layout. I am looking for a way to identify the containers where the bottom edge is less than 50px higher than any other container, and adjust their heights so they align perfectly at the bottom.
You can view an example in this fiddle: http://jsfiddle.net/YFURR/
In the provided demonstration, I aim to pinpoint the instances where box1 and box4 are within 50px of each other at the bottom, and subsequently increase the height of box4 to ensure it seamlessly "snaps" to the bottom edge of box1. The same adjustment would apply to box2 and box5.
If you have any suggestions or solutions, please share them!