Adam Posted January 16, 2007 Share Posted January 16, 2007 hi, im trying to position a div on the screen using javascript to be in the bottom right corner .. then i want to animate the div to create a very similar effect to msn (when a contact signs in). does anybody know how i can position the div in the bottom right corner? Quote Link to comment https://forums.phpfreaks.com/topic/34393-positioning-a-div/ Share on other sites More sharing options...
obsidian Posted January 16, 2007 Share Posted January 16, 2007 You should be able to position the div initially by absolutely positioning it using CSS, then you can use your javascript to actually animate the div. Simply having the div appear within your body tags with the following styles applied should get it to drop down to that location (it should probably be the very last thing in your markup so that the z-index of it remains consistent across browsers):[code]position: absolute;bottom: 0;right: 0;[/code] Quote Link to comment https://forums.phpfreaks.com/topic/34393-positioning-a-div/#findComment-161926 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.