467,910 Members | 1,682 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,910 developers. It's quick & easy.

Having problems with the anchor tag

I have a drop-down div menu that I made CSS and Javascript. When the
user passes over a selection of the menu it creates a border around
the text and turns everything between the border white. Also it turns
the text from white to gray so you can still see the text. My problem
is once the user has clicked on the link it turns the text totally
white, so when you go over it in the menu again it stays white and
doesn't turn gray. I think a previous instance of a:visitor in the css
file is overriding something in the other part of my CSS file. How can
I get the text to turn gray no matter if it has been visited or not?
Here is the part in my CSS file taht should be of importance.

a:visited { color: #FFFFFF; }

#TutorialsLayer {
position:absolute;
padding: 4px 4px 4px 4px;
left: 442px; top: 154px;
width: 140px;
height: 85px;
z-index:2;
background-color: #4169E1;
layer-background-color: #4169E1;
visibility: hidden;
}

#TutorialsLayer p {
margin: 0 0 6px 0;
}

#TutorialsLayer a:hover, #TutorialsLayer a:active {
background-color: #FFFFFF;
border: 1px solid #666;
color: #999;
text-decoration: none;
}

#TutorialsLayer a { width: 135px;
display: block;
padding: 0 3px;
text-align: center;
}

#TutorialsLayer a:link, #TutorialsLayer a:visited {
color: #FFFFFF;
background-color: ##4169E1;
border: 1px solid #eee;
text-decoration: none;
}
Jul 20 '05 #1
  • viewed: 4565
Share:
2 Replies
Mark Constant wrote:
I have a drop-down div menu that I made CSS and Javascript. When the
user passes over a selection of the menu it creates a border around
the text and turns everything between the border white. Also it turns
the text from white to gray so you can still see the text. My problem
is once the user has clicked on the link it turns the text totally
white, so when you go over it in the menu again it stays white and
doesn't turn gray.

[snip]

This question has been asked so many times that people got fed up of
answering it and put it in the FAQ:

<URL:http://css.nu/faq/ciwas-aFAQ.html#QA09>

It's always a good idea to check the FAQ before asking for help. Apart from
anything else, you could easily save yourself some time.
--
Jim Dabell

Jul 20 '05 #2
Mark Constant wrote:
I have a drop-down div menu that I made CSS and Javascript. When the
user passes over a selection of the menu it creates a border around
the text and turns everything between the border white. Also it turns
the text from white to gray so you can still see the text. My problem
is once the user has clicked on the link it turns the text totally
white, so when you go over it in the menu again it stays white and
doesn't turn gray.

[snip]

This question has been asked so many times that people got fed up of
answering it and put it in the FAQ:

<URL:http://css.nu/faq/ciwas-aFAQ.html#QA09>

It's always a good idea to check the FAQ before asking for help. Apart from
anything else, you could easily save yourself some time.
--
Jim Dabell

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by nam | last post: by
7 posts views Thread by LRW | last post: by
6 posts views Thread by Daniele Baroncelli | last post: by
6 posts views Thread by Richard Brown | last post: by
8 posts views Thread by Melanie RŲsch | last post: by
10 posts views Thread by elibol | last post: by
5 posts views Thread by Randy Webb | last post: by
3 posts views Thread by Joseph Gruber | last post: by
1 post views Thread by viv1tyagi | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.