Forum Moderators: open

Message Too Old, No Replies

href links within same page.

         

LeeB

9:03 pm on Apr 30, 2005 (gmt 0)

10+ Year Member



Hello,

I am trying to create a very simply A-Z index where the alphabet is at the top of the page and each letter is linked to the same letter lower down the same page. Letters A-M work fine but N to Z all go to M. The code is below and its prabable a very silly error but I cant spot it. Note: I've put the code through the w3c validator and its fine.

thanks
Lee

<table>
<tr>
<td><a href="#A">A</a></td>
<td><a href="#B">B</a></td>
<td><a href="#C">C</a></td>
<td><a href="#D">D</a></td>
<td><a href="#E">E</a></td>
<td><a href="#F">F</a></td>
<td><a href="#G">G</a></td>
<td><a href="#H">H</a></td>
<td><a href="#I">I</a></td>
<td><a href="#J">J</a></td>
<td><a href="#K">K</a></td>
<td><a href="#L">L</a></td>
<td><a href="#M">M</a></td>
<td><a href="#N">N</a></td>
<td><a href="#O">O</a></td>
<td><a href="#P">P</a></td>
<td><a href="#Q">Q</a></td>
<td><a href="#R">R</a></td>
<td><a href="#S">S</a></td>
<td><a href="#T">T</a></td>
<td><a href="#U">U</a></td>
<td><a href="#V">V</a></td>
<td><a href="#W">W</a></td>
<td><a href="#X">X</a></td>
<td><a href="#Y">Y</a></td>
<td><a href="#Z">Z</a></td>
</tr>
</table>

<p><a name="A">A</a></p>
<p><a name="B">B</a></p>
<p><a name="C">C</a></p>
<p><a name="D">D</a></p>
<p><a name="E">E</a></p>
<p><a name="F">F</a></p>
<p><a name="G">G</a></p>
<p><a name="H">H</a></p>
<p><a name="I">I</a></p>
<p><a name="J">J</a></p>
<p><a name="K">K</a></p>
<p><a name="L">L</a></p>
<p><a name="M">M</a></p>
<p><a name="N">N</a></p>
<p><a name="O">O</a></p>
<p><a name="P">P</a></p>
<p><a name="Q">Q</a></p>
<p><a name="R">R</a></p>
<p><a name="S">S</a></p>
<p><a name="T">T</a></p>
<p><a name="U">U</a></p>
<p><a name="V">V</a></p>
<p><a name="W">W</a></p>
<p><a name="X">X</a></p>
<p><a name="Y">Y</a></p>
<p><a name="Z">Z</a></p>

tedster

9:14 pm on Apr 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If the bottom of the page is already on screen, then the window can't scroll any further, no matter where the named anchor is. Is that what you're running into?

LeeB

6:32 am on May 1, 2005 (gmt 0)

10+ Year Member



I feel like such an idiot. Of course thats whats happening.

Thanks

tedster

4:41 pm on May 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have been a similar idiot in the past with a similar question. That's how I could guess what the answer was so fast. Maybe we should form a club ;)

But seriously, I've long thought that only real idiot is the one who doesn't ask when something makes no sense to them. After a while, this kind of idiot build up a head full of crazy ideas and half truths. The worst of them start to think that they're experts.