another question - the color of links with IE

D

Dan Marino

a {text-decoration: none; color: inherit;}

works well in Firefox - the link text is not different from the non-link
text.

in IE6, the color of the link text is the standard horrific blue. is there
any way (a wrapper, a javascript library, a voodoo rite) to make IE6 behave
in the correct way?

ty all
d.
 
J

jojo

Dan said:
a {text-decoration: none; color: inherit;}

works well in Firefox - the link text is not different from the non-link
text.

in IE6, the color of the link text is the standard horrific blue.

Do you have a color specified to the parent element of your a? If you do
not have IE perhaps does not know which color to use for "inherit"...
 
D

dorayme

Dan Marino said:
a {text-decoration: none; color: inherit;}

works well in Firefox - the link text is not different from the non-link
text.

in IE6, the color of the link text is the standard horrific blue.

Best to set the colours you want directly, till you have more
confidence in what is inherited from what. And while at it, set
something for the hover, the active and visited for those
browsers that implement this css. And don't forget to set a
background colour too to avoid surprises. For example:

a {

color: #009;
background: #fff;
}

a:visited {

color: #909;
background: #fff;
}

etc
 
M

Michael Winter

Dan said:
a {text-decoration: none; color: inherit;}
[snip]

in IE6, the color of the link text is the standard horrific blue. is there
any way (a wrapper, a javascript library, a voodoo rite) to make IE6 behave
in the correct way?

Specify the colour explicitly. A pain, I know, but relying on something
else (like scripting) isn't sensible, in my opinion.

You can always append the anchor to the selectors of relevant rules to
avoid too much duplication:

#some-element, #some-element a {
color: #rrggbb;
}

Mike
 
J

Jukka K. Korpela

Scripsit Dan Marino:
a {text-decoration: none; color: inherit;}

works well in Firefox - the link text is not different from the
non-link text.

Apparently the value of "works well" here is "causes the desired
destruction", though it probably causes some unexpected damage as well.
in IE6, the color of the link text is the standard horrific blue.

You misspelled "the default that helps the user recognize it as a link and
to distinguish it from visited links".
is
there any way (a wrapper, a javascript library, a voodoo rite) to
make IE6 behave in the correct way?

IE6 does not support the value inherited. Simple as that. You need to spend
more time and effort to make your pages crappy the way you want.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top