Last active
December 18, 2015 15:39
-
-
Save LouisWhit/5805495 to your computer and use it in GitHub Desktop.
Set columns to same height on one row. All columns will be height of tallest column.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var i = 0; | |
| var maxHeight = 0; | |
| for (var li = $("#equalHeight .box").length; i < li; i++) { | |
| var currentHeight = $("#equalHeight .box:eq("+i+")").height(); | |
| if (currentHeight > maxHeight) { | |
| maxHeight = currentHeight; | |
| }; | |
| }; | |
| $("#equalHeight .box").height(maxHeight); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment