Hi all!
I am creating 4 links. I wanted to make the link text change to a different color when a user clicked on it. However, when the user click on a different link, the link that they previously clicked on should NOT have the visited color anymore and goes back to the color like the rest of the other links. Are you lost yet??? I am!!!
Alright, I think what I am trying to say is that, every time a user click on a link, I only wanted clicked on link to show a visited color. When they are not looking at that link, it should go back to the original color. Right now, my css coding is NOT working crrectly. All the links should start out in WHITE. When you mouseover the link, it should turn to BLACK. When the user clicked on it, the link should stay BLACK. When the user click on a different link, the original link should go back to WHITE again and NOT stay BLACK. There's should only be only one BLACK link shown. Right now, it is showing all BLACK links when you visited the links.
Here is the CSS:
The link should only be in BLACK when you click on it. No matter if you click on all the links, there should ALWAYS one link in BLACK.
Thanks for any advice!!!
I am creating 4 links. I wanted to make the link text change to a different color when a user clicked on it. However, when the user click on a different link, the link that they previously clicked on should NOT have the visited color anymore and goes back to the color like the rest of the other links. Are you lost yet??? I am!!!
Alright, I think what I am trying to say is that, every time a user click on a link, I only wanted clicked on link to show a visited color. When they are not looking at that link, it should go back to the original color. Right now, my css coding is NOT working crrectly. All the links should start out in WHITE. When you mouseover the link, it should turn to BLACK. When the user clicked on it, the link should stay BLACK. When the user click on a different link, the original link should go back to WHITE again and NOT stay BLACK. There's should only be only one BLACK link shown. Right now, it is showing all BLACK links when you visited the links.
Here is the CSS:
Code:
}
a{
color: #fff;
text-decoration: none;
}
a:hover{
color: #000000;
}
a:visited{
color: #000000;
}
a:selected{
color: #000000;
}
a:selected{
color: #000000;
}
a:selected:hover{
color: #000000;
}
The link should only be in BLACK when you click on it. No matter if you click on all the links, there should ALWAYS one link in BLACK.
Thanks for any advice!!!