Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* FIX HEIGHTS ON FOOTER COLUMNS */
- function sortNumber(a ,b){
- return a - b;
- }
- var hColA = $('.footerColA').height();
- var hColB = $('.footerColB').height();
- var hColC = $('.footerColC').height();
- var hCols = [hColA, hColB, hColC];
- hCols = hCols.sort(sortNumber); // calls above function
- var maxHeight = hCols[hCols.length-1];
- $('.footerColA').height(maxHeight);
- $('.footerColB').height(maxHeight);
- $('.footerColC').height(maxHeight);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement