I didn't think of it in that way, that is as the visited and active as
subsets of "blue" which is a class associated with an "a" tag. I can't
get the blue to work by itself so adding the rest to it won't work until
I do.
Should there be that space between "A" and ".blue" or is that just
something that visual interdev is helpful to add?
Thanks,
Lee
picayunish wrote:
> When Lee Davidson was making a web page, a
appears and wrote:
>
>>I can't seem to get CSS to work for specific tags. I can when it is a
>>class alone, however. Here is the CSS in question:
>>
>>A .blue
>>{
>> COLOR: blue;
>> TEXT-DECORATION: none
>>}
>>A A:visited
>>{
>> COLOR: blue;
>> TEXT-DECORATION: none
>>}
>>A A:hover
>>{
>> FONT-WEIGHT: bolder;
>> COLOR: green
>>}
>>A A:active
>>{
>> COLOR: blue;
>> TEXT-DECORATION: none
>>}
>>
>>In the first case I want the link to be blue without an underline. In
>>the other cases, I want the link to change (hover) or not change
>>(visited and active same color). I had the last three as an inline
>>style (not in an .css file) and they worked, but now they don't as part
>>of the .css file.
>
>
> Try this.
> a.blue, a.blue:visited, a.blue:active {color: blue; background:
> transparent; text-decoration: none;}
> a.blue:hover {font-weight: bold; color: green; background: transparent;}