/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<script type="text/javascript"> var h = document.getElementById("mainContentID").offsetHeight; document.getElementById("menuID").style.height = h + "px"; </script>
URL: http://www.mikedoesweb.com/2011/01/100-height-div-with-2-lines-of-code/comment-page-1/#comment-1167