cmr Posted April 29, 2008 Share Posted April 29, 2008 I am working on a menu that is a list of links, which when clicked open up sub links below using javascript as well as navigating to a new page which also links to the anchor of the item you clicked so the item you clicked will be visible in the scrollable div. Problem i'm having is that when it scrolls to the anchor inside the div its then scroll half way down the page I'm wondering how to solve it. Either by getting it to scroll back to the top of the page after it has scrolled to the correct point inside the div, or getting the div to scroll itself. Have found some methods but using static values to scroll which wont help me as the height differs. Quote Link to comment https://forums.phpfreaks.com/topic/103375-scrolling-to-a-point-within-a-div/ Share on other sites More sharing options...
GameYin Posted April 29, 2008 Share Posted April 29, 2008 Do you have a website for us to look at? What browser(s) are you testing this in. More information please ??? :'( Quote Link to comment https://forums.phpfreaks.com/topic/103375-scrolling-to-a-point-within-a-div/#findComment-529484 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.