Return to Snippet

Revision: 40080
at January 25, 2011 23:47 by fauverism


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

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

Initial Description

                                

Initial Title
Javascript for height: 100%;

Initial Tags

                                

Initial Language
JavaScript