Equal Height Columns


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $.fn.equalizeHeights = function(){
  2. return this.height(
  3. Math.max.apply(this,
  4. $(this).map(function(i,e){
  5. return $(e).height()
  6. }).get()
  7. )
  8. )
  9. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.