Move element to Y coordinate

O

OtisUsenet

Hello,

Is there a way to use JavaScript to push a page element (a DIV block,
for example) down the screen, so it sits at the bottom of the browser
window.

For example of a bad footer location:
http://www.simpy.com/user/angusprune

Note how the footer is very high up. Is there a way to push the DIV
that the footer is in to the bottom of the browser window?

In pseudocode:

if (where element Y coordinate is above <browser window bottom Y
coordinate>) {
move footer to browser window bottom Y coordinate
}
else {
leave footer where it is , as that means that the content of the page
already pushed it down
}

Is this doable? If anyone can paste any JS or point me to a good place
to learn how to do this, I'd be grateful.

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top