Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

slooksterPSV

macrumors 68040
Original poster
Apr 17, 2004
3,543
305
Nowheresville
I've setup a <div> area that is setup on Auto for scrolling options. If I have <a name="top"></a> and a ways down the div have a link back to <a href="#top">TOP</a> it does nothing. Firefox works, Internet Explorer works, but Safari does not for this. I've tried changing name to #top, I've tried taking out the </a> on <a name> I tried a lot of things, but nothing has worked. Anyone have this problem?

BTW this is in a PHP Page that loads a page into the <div> box that has the <a name> thing in it. I'll post the code if you need it.
 

rendezvouscp

macrumors 68000
Aug 20, 2003
1,526
0
Long Beach, California
You should use <a id="top></a> for that anchor. While "name" is still part of the spec, later versions of XHTML will be getting rid of the "name" attribute. I'm unsure why it doesn't work in Safari (perhaps a conflict with another id?) but try using "id" and see if that works.
-Chase
 

slooksterPSV

macrumors 68040
Original poster
Apr 17, 2004
3,543
305
Nowheresville
Nope ID didn't work either. I have it setup like this
<a name="top" id="top"></a>




text

whatever else

<a href="#top">TOP</a>
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.