MadnessRed Posted February 19, 2009 Share Posted February 19, 2009 Is it possible to change a div's hiegh depending on the browser? eg document.getElementById('div1').style = "height:"+window.innerHeight+"px;overflow-y:auto;" but that doesn't work for some reason? Quote Link to comment Share on other sites More sharing options...
MadnessRed Posted February 19, 2009 Author Share Posted February 19, 2009 I have this now, but still doesn't work <script type="text/javascript"> document.getElementById('div1').style.height = (window.innerHeight * 1); </script> Quote Link to comment Share on other sites More sharing options...
MadnessRed Posted February 19, 2009 Author Share Posted February 19, 2009 sorry I am an idiot. I forgot that css want a px at the end of a height Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.