Posted By

delibash on 05/27/09


Tagged

jquery


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

jfherring
Flocke


Unify Heights


 / Published in: jQuery
 

URL: http://RealDimensions.com/

http://coda-clips.com/unify-div-heights-using-jquery

  1. function unifyHeights() {
  2. var maxHeight = 0;
  3. $('div#container').children('div').each(function() {
  4. var height = $('div#container').outerHeight();
  5. //alert(height);
  6. if ( height > maxHeight ) { maxHeight = height; }
  7. });
  8. $('div.floater').css('height', maxHeight);
  9. }

Report this snippet  

You need to login to post a comment.