Posted By

fauverism on 01/25/11


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

jillella


Javascript for height: 100%;


 / Published in: JavaScript
 

URL: http://www.mikedoesweb.com/2011/01/100-height-div-with-2-lines-of-code/comment-page-1/#comment-1167

  1. <script type="text/javascript">
  2. var h = document.getElementById("mainContentID").offsetHeight;
  3. document.getElementById("menuID").style.height = h + "px";
  4. </script>

Report this snippet  

You need to login to post a comment.