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. Link to comment https://forums.phpfreaks.com/topic/116608-sending-a-div-to-the-bottom-lefty-of-the-screen/ 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> Link to comment https://forums.phpfreaks.com/topic/116608-sending-a-div-to-the-bottom-lefty-of-the-screen/#findComment-599598 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.