Posted By

pablazo on 10/26/07


Tagged

javascript tablas


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

gedittest
joseluis


Establecer la misma altura para dos columnas


 / Published in: JavaScript
 

URL: http://www.webintenta.com/establecer-la-misma-altura-para-dos-columnas.html

  1. function setH() {
  2. var maxH = Math.max(document.getElementById('content').offsetHeight,document.getElementById('navigation').offsetHeight);
  3. document.getElementById('content').style.height=maxH+'px';
  4. document.getElementById('navigation').style.height=maxH+'px';
  5. }
  6.  
  7. window.onload=setH;

Report this snippet  

You need to login to post a comment.