-
-
Save DannyNunez/4456034 to your computer and use it in GitHub Desktop.
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
| // set equal height with 2 tags | |
| function set_height(div1, div2){ | |
| var height1 = $(div1).height(); | |
| var height2 = $(div2).height(); | |
| if(height1 > height2){ | |
| $(div2).css('min-height',height1); | |
| }else{ | |
| $(div1).css('min-height',height2); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment