The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> anchor name not working in ie6
raphael75
post Feb 25 2008, 01:30 PM
Post #1


Novice
**

Group: Members
Posts: 28
Joined: 12-November 07
Member No.: 4,295



On the page:

http://www.billygraham.org/SOE_Index.asp

we have a series of anchor links that go to, for example, this page:

http://www.billygraham.org/SOE_asheville.asp#class4

Everything is fine in ie7 & FF, but ie6 is not recognizing the <a name="class4">... anchor tag. It just goes to the top of the page and stays there. Any idea why ie6 is acting this way? Thanks!

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Feb 25 2008, 02:07 PM
Post #2


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



I recommend that you start by fixing the markup errors reported by our online validator.

My guess is that the empty anchor is being ignored (even though it is technically valid). It is better to have something inside the anchor that you are linking to. The more modern approach is to avoid anchor elements, and to use id attributes on meaningful elements. For example, the paragraph following the empty anchor (the paragraph looks like it should be some sort of heading, BTW) could have the id="class4" attribute. (NN4 doesn't support links to id attributes, but NN4 is pretty much obsolete now.)
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 26th April 2024 - 03:52 AM