Forum Moderators: not2easy

Message Too Old, No Replies

Anchor tags w/in overflow-auto

Is it possible to use an anchor tag to jump to a point within a div?

         

ktny

6:13 pm on Jan 4, 2004 (gmt 0)



This is my first post... I really appreciate any help/advice. I've learned a lot reading this forum.

What I'm doing works with IE6/NN6.
But it doesn't work for Safari on Apple - since it's a music-related site, I get a lot of Safari hits. Also doesn't work on IE5 for Mac.

I have a couple divs next to each other in a table, both of which have overflow-auto. What I want to do is to use an anchor tag (referring to a point on the page, #___) linking from one div to a specified <a> point on another. On new versions of IE/NN, the link will correctly jump to the correct point within the overflow div, and automatically scroll down to the <a> spot. But this doesn't work everywhere.

Is there a special way that I need to do these anchor tags to work within the div-overflow-auto? Or is Safari (for instance) just problematic?

(In case you're curious, a sample page is is www.cantaloupemusic.com/catalog.html)

THANKS for help & best wishes
Ken

phoenix09

8:40 pm on Jan 10, 2004 (gmt 0)

10+ Year Member



That's a really cool idea, but overflow:auto just doesn't work very reliably, your page doesn't work on Opera 7 either by the way. Also doesn't work on older IE's I think, IE 5.0 for windows, not positive but think it doesn't work there. IE 5 for mac is useless, it's better just giving up on trying to support that unless you like headaches.

By the way you're not supposed to post URL's on this forum but personally I'm glad you did, that was a really interesting idea, impressive, glad I got to see it.

But there's nothing you can do to make Safari support this unfortunately, overflow: is one of the worst supported CSS features out there. I wanted to do something like what you're doing to get rid of my inline frames but found too many bugs and errors on Opera and Mozilla to switch them, for example Mozilla wouldn't scroll the page using the mousewheel until you'd physically clicked on the scrolling part of the page until I think version 1.5, firebird 0.7, now it works fine, but it won't work right on older mozillas or netscapes.

You could make the page super complicated with frames and inline frames but that's a total head ache if you want search engines to index it and people to actually see what you want them to see if they come in to a section of inline frame content from the search engine, needs cookies and all kinds of other annoying javascript stuff which may or may not work on Safari anyway, I do that on a few sites but it's a real pain to keep working.