Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 14th, 2012  |  syntax: None  |  size: 0.41 KB  |  hits: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. /* Need to equalize 2 quote blocks on homepage */
  2.  
  3.  
  4. $(document).ready(function() {
  5.         var quotes = $('.cms-home .quotes blockquote');
  6.         var max = 0;
  7.         quotes.each(function(i){
  8.                 if ($(this).innerHeight() > max) {
  9.                         max = $(this).innerHeight();
  10.                 }
  11.         });
  12.         quotes.each(function(i){
  13.                 padding = parseInt($(this).css('paddingTop')) + parseInt($(this).css('paddingBottom'));
  14.                 $(this).height(max - padding);
  15.         });
  16. });