how to dynamically (re)position an element according to the bottom of the page using JS / Jquery?

Posted by jon on Stack Overflow See other posts from Stack Overflow or by jon
Published on 2010-03-19T15:45:28Z Indexed on 2010/03/19 16:31 UTC
Read the original article Hit count: 139

Filed under:
|

Hi All,

the back story: i have a tab section on a page which when navigated through displays sections (divs) of varying height.

the result, is that certain inputs (which are strangely positioned for reasons i can't change) on this page reposition themselves problematically.

the proposed solution: as the page height changes, have these problem inputs repositioned according to the page bottom (from which their appropriate distances are always a constant).

what i'm thinking is that i need some js that does something like,

page height change triggers input position from bottom to = x.

there are two inputs if that's at all relevant. :)

if only there was css for this (i know there is under normal circumstances, but trust me -- not in this case).

thanks for your time & help i've been struggling with this for weeks!

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript