GB_001 Posted July 25, 2008 Share Posted July 25, 2008 Hello I am inquiring how to send a div to the bottom of the screen using javascript. Can someone please tell me how? Thankyou. -GB. Quote Link to comment Share on other sites More sharing options...
lemmin Posted July 25, 2008 Share Posted July 25, 2008 positioning needs to be absolute. <div id="div1" STYLE="position:absolute;background-color:#FF0000;width:50px;height:50px" onclick="this.style.top=(document.body.offsetHeight-parseInt(this.style.height)-4);"></div> 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.