Establecer la misma altura para dos columnas


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



Copy this code and paste it in your 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;

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.