Posted By

inreflection7 on 09/16/11


Tagged

columns equal


Versions (?)

Equal Columns


 / Published in: JavaScript
 

  1. function setEqualHeight(columns)
  2. {
  3. var tallestcolumn = 0;
  4. columns.each(
  5. function()
  6. {
  7. currentHeight = $(this).height();
  8. if(currentHeight > tallestcolumn)
  9. {
  10. tallestcolumn = currentHeight;
  11. }
  12. }
  13. );
  14. columns.height(tallestcolumn);
  15. }
  16. setEqualHeight($("#main .left-side-nav, #main #column-container"));

Report this snippet  

You need to login to post a comment.