-
-
Save josueochoa/ae8214df978403dfad04 to your computer and use it in GitHub Desktop.
Avia js mod for: http://www.kriesi.at/support/topic/vertically-align-icon-box-next-to-easy-slider/#post-214956
This file contains 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
/* This goes to js/avia.js (end) */ | |
jQuery.fn.heightCalc = function(dir){ | |
this.each(function(){ | |
if (dir == "prev"){ | |
jQuery(this).css("height", jQuery(this).prev().height()); | |
}else{ | |
jQuery(this).css("height", jQuery(this).next().height()); | |
} | |
}); | |
return this; | |
} | |
jQuery(window).bind('load resize',function() { | |
jQuery(".custom_list_r").parent().heightCalc("prev"); | |
jQuery(".custom_list_l").parent().heightCalc("next"); | |
}); | |
/* This to Quick CSS | |
.flex_column.av_one_half { | |
display: table; | |
} | |
.custom_list_r, .custom_list_l { | |
display: table-cell; | |
vertical-align: middle; | |
} | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment