anchor name not working in ie6 |
anchor name not working in ie6 |
raphael75 |
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! |
Darin McGrew |
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.) |
Lo-Fi Version | Time is now: 26th April 2024 - 03:52 AM |