Equal height with jquery


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



Copy this code and paste it in your HTML
  1. $(document).ready(function() {
  2. var eheight = 0;
  3. var eheight_el = $('.equal-h');
  4. eheight_el.each(function(){
  5. var me_height = $(this).height();
  6. if(me_height>eheight) {
  7. eheight = me_height;
  8. }
  9. });
  10. eheight_el.height(eheight);
  11. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.