Topic: link color conflict (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=11084" title="Pages that link to Topic: link color conflict (Page 1 of 1)" rel="nofollow" >Topic: link color conflict <span class="small">(Page 1 of 1)</span>\

 
JKMabry
Maniac (V) Inmate

From: out of a sleepy funk
Insane since: Aug 2000

posted posted 10-23-2003 20:35

What am I doing wrong here...

code:
a, a:visited {
color : orange;
background-color : transparent;
}
.class a, a:visited {
color : magenta;
background-color : transparent;
}



the style above is causing any link on the page to be magenta whether the class is applied or not, see (it may be correct at first but click and alink and refresh, then it behaves like I'd not expect)?

If I do like so:

code:
a, a:visited {
color : orange;
background-color : transparent;
}
.class a {
color : magenta;
background-color : transparent;
}
.class a:visited {
color : magenta;
background-color : transparent;
}



it works. So what am I doing wrong in the first example? Or is that just the way it is?

Aas always, links on the specific subject always appreiated. Thanks

Jason

[This message has been edited by JKMabry (edited 10-23-2003).]

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 10-23-2003 21:05

You are telling it to make any visited link magenta -

code:
a, a:visited {
color : orange;
background-color : transparent;
}
.class a, a:visited {
color : magenta;
background-color : transparent;
}



The second declaration should actually be:

code:
.class a, .class a:visited {
}



JKMabry
Maniac (V) Inmate

From: out of a sleepy funk
Insane since: Aug 2000

posted posted 10-23-2003 21:22

gracias amigo =)

Jason

krets
Paranoid (IV) Mad Scientist

From: KC, KS
Insane since: Nov 2002

posted posted 10-23-2003 22:27

Magenta?

Have you been watching Queer Eye for the Straight Guy again Jason?

:::11oh1:::



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu