Click to See Complete Forum and Search --> : Page scroll is jummping


salim
12-10-2008, 10:53 PM
I am having a div with style overflow:auto

so when i click on the #link on the top of the page it jumps to the bookmarks which are in the above said div .

My problem is when the page is jumping to the #link in the div the page is also jumping.the scroll of the page is also jumping.

How will I make the page scroll stand still.

I tried with frames also,but the end result was the same.

Plz anybody shed some light

thnx
I Remain

KDLA
12-11-2008, 09:11 AM
Can you post a link to the problem page? I'm not quite clear as to what you're describing.

salim
12-11-2008, 11:27 PM
Hi KDLA
Thanks for your reply

This is the page i am refering to

http://www.plsll.com/branches.htm

When we click on the anchor links the page scroll also jumps other than the div.

Regds
I remain

KDLA
12-12-2008, 07:16 AM
Hmmmm --- I didn't experience a problem with either Fx3 or IE6.

salim
12-13-2008, 12:30 AM
Hi KDLA

thanks for your precious time

I will brief the problem

keep the page scroll on top
then click on any #links on the page.
page goes to the #link and the page scroll jumps to the bottom

Now i think i have made it clear

Thanks again
i remain

KDLA
12-13-2008, 06:03 AM
OK - I see what you mean (now on a smaller monitor) -- not the scroll of the <div>, but the page itself. I don't believe you can do anything (css) to fix that. The browser adjusts the "top" of the page based upon the anchor clicked. If the anchor is buried in a scrollable div, the clicked link is going to place the scrollable div at the top of the page.

I believe the affect you're wanting (no page adjustment) is only achieved with an Iframe, which is a separate HTML doc. loaded into an inline frame.

salim
12-13-2008, 10:19 PM
Hi KDLA

I have tried iframes also, but the result is same.:).
sad to believe that will not fix the problem.

once again thanks for your time
i remain:)