Scrolling div and anchor links

By rob

I've just hit a browser difference that stopped me for a while!

My problem:

Text links outside a scolling div to jump the scroll view to the desired location within the scrolling div.
The scrolling div has the css overflow:auto; with a set height to enable scrolling.
Using normal anchor links and names worked for firefox but not IE6 + IE7, after researching on the net I came across a javascript equivalent.

document.getElementById('elmID').scrollIntoView(true);

Using this javascript and adding ID's to the areas I needed for scroll view worked a treat! 

Related posts