What if the browser is only occupying a small portion of the user's screen? In those situations do you still want to size the division relative to the user's screen height? In any case, if this is what you truly want to do:
Code:
document.getElementById('divId').style.height=screen.height+'px'
or for only a portion of the screen height:
Code:
document.getElementById('divId').style.height=screen.height*0.9+'px'
You can put this in an external .js file say - div_height.js and call it on your page just above the closing </body> tag:
HTML Code:
<script src="div_height.js" type="text/javascript"></script>
Bookmarks