Move element to Y coordinate



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!

.



Relevant Pages

  • Re: Move element to Y coordinate
    ... Is there a way to use JavaScript to push a page element (a DIV block, ... 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? ...
    (comp.lang.javascript)
  • CSS to put text at bottom of browser window, or page bottom, whichever is lower?
    ... Just looking for a simple way to put some footer text at the bottom of the ... browser window (or after the complete body if past the bottom of the ... I've a few absolutely positioned DIVs, so the "relative" position of the ...
    (alt.html)
  • Header, Content, Footer layout
    ... I have a master page where I want to define a header (centered at top ... of browser window), content, and footer (centered at bottom of browser ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Footers - where are they measured from?
    ... When your bottom margin is 3 cm and the footer margin is 1 cm, ... the footer is at 1 cm (that is, Word allows 1 cm between the footer and the ... > "Suzanne S. Barnhill" wrote in message ...
    (microsoft.public.word.docmanagement)
  • Re: lines getting cut off
    ... If you have set the bottom margin to 0cm, the footer is definitely in the non-printable area. ... Only professional printers have the capability of printing close to the edge of the page and often printing right to the edge is achieved by using over-size pages and trimming off the excess after printing. ...
    (microsoft.public.word.application.errors)

Loading