inherit
195014
0
Jan 16, 2017 10:59:04 GMT -8
Tigress
30
June 2013
artemiscrock
|
Post by Tigress on Jun 5, 2013 14:47:37 GMT -8
Good Afternoon Everyone!
I was looking for a particular code and am unable to locate it. The code would change the color of a link when the mouse was placed over it. For example, if a link is normally red it would turn black when the mouse was placed over it. Any help with this would be greatly appreciated!
Thank you!
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Jun 5, 2013 16:54:02 GMT -8
This will change all a links: Global header (assuming you still have V4.5)
<style type="text/css"> <!-- a:link{ color: #ff0000; } a:visited{ color: #ffffff; } a:hover{ color: #000000; text-decoration: none; } --> </style>
If you want some specific links colored differently just put div around the links you want changed with an id in them like so:
<div id="my_linkies"> <a href="http:/mylink.ocom">Link One</a> </div>
And then add the blue to each one of those classes above like I did below:
#my_linkies a:link{ color: #ff0000; }
|
|
inherit
195014
0
Jan 16, 2017 10:59:04 GMT -8
Tigress
30
June 2013
artemiscrock
|
Post by Tigress on Jun 6, 2013 14:18:52 GMT -8
Thank you so much! Would you know how to change the background color as well? An example would be this: the link is normally red, but when the mouse is placed over it the link turns black and the background (a box around the link) appears as white.
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Jun 6, 2013 17:42:35 GMT -8
Tigress, You can just add the background color to each section: a:link{ color: #ff0000; background-color: #000000;} I put black (#000000) in that because then you wouldn't see your red link. lol
|
|
inherit
195014
0
Jan 16, 2017 10:59:04 GMT -8
Tigress
30
June 2013
artemiscrock
|
Post by Tigress on Jun 22, 2013 19:07:25 GMT -8
Thank you so much! It worked perfectly!!
|
|