Well these are redundant because they apply the same styles, you could just say a:link, a:visited (or a:any-link, which combines :link and :visited).
I dont… know what you mean by “having trouble” though? What’s it doing that it shouldnt be, or not doing that it should be?
This CSS works fine and I use it on many pages. On one particular page I want to use it but I also have another CSS with buttons that conflicts with this one. So I wanted to add a class to use for one hyperlink only.
Yep, my mistake and I knew that. I was messing around with colors to figure out what was going on. But I changed it back.
But I still have the problem. The color on the screen is same color as in the CSS with the ID. That’s the conflict as I originally mentioned. It should be white which is #FFF.
Summary: If I remove the first submitted CSS then the .button1 class works fine. If I keep the first CSS, the .button1 class color of text is the color:
#1e5186
So I want to stop the conflict and use ID on the ahref.
I dont see how button1 is being applied to an element tuat isnt classed button1.
if its wrapped in an element classed that, then the style associated to the tag will override the style assigbed to the container; thats what css does.
Well, I sort of gave up on it and did something different because I couldn’t get any combination to work. Probably something simple but for me apparently not!!
If you want the button not to receive that visited color then add it to your button rule. (The visited color is applied when the browser has seen the link destination before.)