Return to Snippet

Revision: 64458
at August 9, 2013 20:38 by thesmu


Initial Code
$(document).ready(function() {
   var maxHeight = -1;

   $('.features').each(function() {
     maxHeight = maxHeight > $(this).height() ? maxHeight : $(this).height();
   });

   $('.features').each(function() {
     $(this).height(maxHeight);
   });
 });

Initial URL
http://stackoverflow.com/questions/6781031/use-jquery-css-to-find-the-tallest-of-all-elements

Initial Description
$(document).ready(function() {
   var maxHeight = -1;

   $('.features').each(function() {
     maxHeight = maxHeight > $(this).height() ? maxHeight : $(this).height();
   });

   $('.features').each(function() {
     $(this).height(maxHeight);
   });
 });

Initial Title
Use jQuery/CSS to find the tallest of all elements - Stack Overflow

Initial Tags
jquery

Initial Language
jQuery