lelee148
09-27-2005, 05:54 PM
Hi everyone, well I've recently created a petpage, and I tried to add anchors on my page. However, the anchors wont work. My petpage is at the following link: http://petpages.neopets.com/~Eomairdh Can anyone help me resolve this issue? I'd greatly appreciate it! Thanks for your concern. :confused: :help: :bye2:
sirou
09-28-2005, 12:03 AM
as far as I can see the code is almost correct, you only have to add the # sign in your anchors, like in the menu where you named the anchors. And the </a> code should be further ahead.
you have this menu:
<a href=#hello>Welcome</a><br>
<a href=#hobbies>My Hobbies</a><br>
<a href=#neopets>My Neopets Favorites</a><br>
<a href=#goals>My Neopets Goals</a><br>
<a href=#help>Morgan's Help</a><br>
<a href=#layout>Regarding Layouts</a><br>
<a href=#FAQ>FAQs before you Neomail Morgan</a><br>
but then in your welcome anchor you put:
<a name=hello><span style="background-color: #DBBFFF"><b>Welcome</span></b></a>
in stead of
<a name=#hello></a><span style="background-color: #DBBFFF"><b>Welcome</span></b>
I hope that solves your problem.
lelee148
09-28-2005, 01:28 AM
I've tried changing my code with:
<a name=#hello></a><span style="background-color: #DBBFFF"><b>Welcome</span></b>
but it still didn't turn out correctly. :( I use microsoft frontpage and there's something wrong with my coding. It could be something else :rant:
Douglas
09-28-2005, 01:52 AM
try this:
<a name="hello"><span style="background-color:#DBBFFF;"><b>Welcome</b></span></a>
lelee148
09-28-2005, 02:07 AM
still the same problem. It wont work :mad: this is getting frustrating...
ok, I've updated my script at my petpage, however the anchors still wont work :( I've managed to fix some mistakes with the color coding, but frontpage proved there are no more mistakes. Could it be that I can't do anchors with div elements??? :confused:
Hey everyone, thanks for taking your time to try to figure out my problem. I've done some research about it, and found a solution to it. For those of you who are experiencing the same problems I had with anchor links in <div> blocks, please visit the following website: http://www.fiftyfoureleven.com/sandbox/filling-a-block-element-with-an-anchor-1/
This topic is now closed! :cheer: