We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Quick HTML Question?
Topic Started: Mar 20 2005, 01:44 PM (365 Views)
AlexOrk
Alex: WHOMG I'M WATCHING KERRANG.
[ *  * ]
Just wanna know how to change the link color in HTML.
Offline Profile Quote Post Goto Top
 
Gornakle
Member
[ *  *  *  *  * ]
Code: HTML
 
<a href="http://www.somesite.com" style="color: red">My link</a>


There you go. ;)
Change the "color: red" part to suit your needs.
Offline Profile Quote Post Goto Top
 
AlexOrk
Alex: WHOMG I'M WATCHING KERRANG.
[ *  * ]
Thanks.Is there a way to change the color of visited links?
EDIT: And what about link decoration?
Offline Profile Quote Post Goto Top
 
FearKiller
Member Avatar
www.drewscripts.com
[ *  *  *  *  * ]
Use CSS instead. Add this to the head of you HTML document and edit the properties to meet your needs.

Code:
 
<style type="text/css">
<!--
a:link {
color: #ABCDEF;
}

a:active {
color: #ABCDEF;
}

a:visited {
color: #ABCDEF;
}

a:hover {
color: #ABCDEF;
}
-->
</style>


For decoration just add the property "text-decoration" to the appropriate elements. Here's an example.

Code:
 
a:hover {
color: #ABCDEF;
text-decoration: underline;
}
Offline Profile Quote Post Goto Top
 
AlexOrk
Alex: WHOMG I'M WATCHING KERRANG.
[ *  * ]
Thanks FearKiller.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Technology Chat · Next Topic »
Add Reply