"scroll-to-anchor + XX pixels" problem

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
jason87dk
Forum Newbie
Posts: 4
Joined: Fri Oct 30, 2009 5:29 am

"scroll-to-anchor + XX pixels" problem

Post by jason87dk »

Hi,

I have several dates (for band gigs) recorded in a single mysql table and they are presented in one, long list. I have recently implemented an edit function which is working, but not looking, as it should.
Image
The blue div on the right is fixed and scrolls down the page "with" the user, always 95 px from the browser window top. What happens when you click edit on a date as of now:
Image
What I would like to do:
Image
I would like that the to-be-edited date (red border) aligns with the div on the right, 95 px from the browser window. I don't know how to do this in javascript, so any help would be greatly appreciated.

Thanks,
Jason
Post Reply