Safari and links to elements in overflow:auto content

Clicking the links below should scroll the div to the selected number, but it does not work in Safari.

* Note: This will only fail to work in the Safari browser or any other browsr that does not support links to named anchors/IDs inside elements that are set to overflow: auto.

1 content goes in here, many lines

2 content goes in here, many lines

3 content goes in here, many lines

4 content goes in here, many lines

5 content goes in here, many lines

6 content goes in here, many lines

7 content goes in here, many lines

8 content goes in here, many lines

9 content goes in here, many lines

10 content goes in here, many lines

11 content goes in here, many lines

12 content goes in here, many lines

13 content goes in here, many lines

14 content goes in here, many lines

15 content goes in here, many lines

View Javascript solution

Back to blog post on deconcept.com.