Skip to content

Instantly share code, notes, and snippets.

@IchHabRecht
Created August 21, 2013 20:23
Show Gist options
  • Save IchHabRecht/6299725 to your computer and use it in GitHub Desktop.
Save IchHabRecht/6299725 to your computer and use it in GitHub Desktop.
[JS] Columns of same length
<script type="text/javascript">
<!--
jQuery.noConflict();
jQuery(document).ready(function() {
var wrapper = jQuery('div#wrapper_content').find('div#wrapper_columns');
if (wrapper.length > 0) {
jQuery('div#column_left > div').each(function(index){
var h = Math.max(jQuery(this).height(), jQuery('div#column_right > div').eq(index).height());
jQuery(this).height(h);
jQuery('div#column_right > div').eq(index).height(h);
});
}
});
// -->
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment