Novahq.net Forum

Novahq.net Forum (https://novahq.net/forum/index.php)
-   Web design and Programming (https://novahq.net/forum/forumdisplay.php?f=32)
-   -   How To Make All HTML Links All... (https://novahq.net/forum/showthread.php?t=33160)

BlackVentur 02-10-2006 06:21 PM

How To Make All HTML Links All...
 
How can I make all my HTML links turn a certain color when you move your mouse over it? I know how to do it manually, but I really don't want to have to do that everytime I add a new link. Is there like a script you can put at the head of your HTML scripts area or something that will automactily do that for you? I know some HTML templetes I've used do what i'm trying to do, but I'm making my own templete from scrach.

Thanks

Hers a example site: www.fileplanet.com

Capers 02-10-2006 06:28 PM

CSS is the answer :-)

Define css styles something like these in the head section of the html, or inside an already linked css file.

a:link {
color: #000000;
}
a:hover {
color: #660000;
}

Black text will turn red on hover.

BlackVentur 02-10-2006 07:30 PM

Can you give me the whole code, because for some reason this isn't working for me yet. Also, do I have to change my text to the color you set which is Black I believe for it to work?

DevilDog#1 02-10-2006 07:43 PM

PHP Code:

<style type="text/css">
a:link {
color#000000;
}
a:hover {
color#660000;
}
</
style


BlackVentur 02-10-2006 10:44 PM

what would I need to add to make it where, a line would be under it also when you roll your mouse over it?

Kinda like its underlined

Scott 02-10-2006 10:49 PM

<style type="text/css">
a:link {
color: #000000;
}
a:hover {
color: #660000;
text-decoration:underline;
}
</style>

BlackVentur 02-11-2006 12:44 PM

ok i'll try that.


All times are GMT -5. The time now is 11:16 AM.

Powered by vBulletin®