|
Web design and Programming Discuss website creation and other programming topics. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||
|
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 |
#2
|
||
|
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.
__________________
|
#3
|
||
|
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?
|
#4
|
||
|
PHP Code:
|
#5
|
||
|
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 |
#6
|
||
|
<style type="text/css">
a:link { color: #000000; } a:hover { color: #660000; text-decoration:underline; } </style>
__________________
04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq |
#7
|
||
|
ok i'll try that.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Links | Dragon-SC- | Sigs and Graphics | 3 | 06-06-2006 12:44 PM |
html | Gfx Man | Sigs and Graphics | 3 | 07-31-2005 12:06 AM |
HTML Help | nuCkle | Web design and Programming | 8 | 06-17-2005 09:28 PM |
Html | GeeFuss | Web design and Programming | 7 | 12-20-2004 07:35 AM |
HTML? | EDGE | Web design and Programming | 3 | 09-01-2003 08:13 PM |