...

View Full Version : link to middle of same page question



Heeter
01-22-2008, 05:54 PM
Hi all,

I would like to know how to link from a link on the top of the page to a paragraph in the middle of the page.

From what I have right now, it seems to work somehow, but the link on top changes color and stays purple.

Here is an example of what I have:



<font face="Arial"><a href="#A"><li>Link To Bottom><font face="Arial"><a href="#A"><li>Airbrake Endorsement</a></font><br>
</a></font><br>


And the middle para.



<b><a name="A">Airbrake Endorsement:</a></b>



Thanks,


Heeter

Apostropartheid
01-22-2008, 06:22 PM
Try this.

[...]
<style type="text/css">
a.internal {
font-family: Arial, sans-serif;
color: blue;
}
p {
font-weight: bold;
}
</style>
[...]
<a href="#airbrake" class="internal">Link to Bottom &gt; Airbrake Endorsement.</a>
<p id="airbrake">Airbrake Endorsement:</p>

Heeter
01-22-2008, 06:54 PM
Thanks for the help, that worked out,

BTW would you know why the link, when clicked on, stays purple?


Thanks,

Heeter

Apostropartheid
01-22-2008, 07:15 PM
What do you mean?

After it's clicked its color'll be purple to signal it's visited. If you want to modify that, use the :visited psuedoclass.


a:visited {
color: pink;
text-decoration: none;
}
a:hover {
color: #39f;
}

Heeter
01-22-2008, 07:23 PM
Thanks again, for the information.

I will just leave it like that then.

Thanks for your help.

Heeter



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum