Advertisement
IchHabRecht

[JS] Columns of same length

Apr 18th, 2012
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript">
  2. <!--
  3.       jQuery.noConflict();
  4.       jQuery(document).ready(function() {
  5.         var wrapper = jQuery('div#wrapper_content').find('div#wrapper_columns');
  6.         if (wrapper.length > 0) {
  7.           jQuery('div#column_left > div').each(function(index){
  8.             var h = Math.max(jQuery(this).height(), jQuery('div#column_right > div').eq(index).height());
  9.             jQuery(this).height(h);
  10.             jQuery('div#column_right > div').eq(index).height(h);
  11.           });
  12.         }
  13.       });
  14. // -->
  15. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement