HighDots Forums  

link color in IE

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss link color in IE in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
condor
 
Posts: n/a

Default link color in IE - 01-13-2006 , 11:32 AM






I am trying to set the color of a link with CSS. But somehow it does
not work in IE (I am using 5.5).

Example code:

<table class="mymenu"><tr><td><a href="http//www.somewhere.com/">A
link</a></td></tr></table>

And in the stylesheet:

table.localmenu a
{ color: #f5fc70;
background-color:red;
}

In Mozilla this will color the link text yellow. In IE it stays the
standard blue.

I would like to know what is causing IE to behave this way and how I
can work around it.


Reply With Quote
  #2  
Old   
Els
 
Posts: n/a

Default Re: link color in IE - 01-13-2006 , 12:00 PM






condor wrote:

Quote:
I am trying to set the color of a link with CSS. But somehow it does
not work in IE (I am using 5.5).

Example code:

table class="mymenu"><tr><td><a href="http//www.somewhere.com/">A
link</a></td></tr></table

And in the stylesheet:

table.localmenu a
{ color: #f5fc70;
background-color:red;
}
I doubt that will work in any browser, since 'localmenu' is not quite
the same as 'mymenu'...

Quote:
In Mozilla this will color the link text yellow. In IE it stays the
standard blue.
Maybe you have more stylerules for <a> elements elsewhere in the
stylesheet?

You have an online example?
I can't reproduce your problem in my IE5.5.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -


Reply With Quote
  #3  
Old   
condor
 
Posts: n/a

Default Re: link color in IE - 01-14-2006 , 03:33 AM




Els schreef:

Quote:
condor wrote:

I am trying to set the color of a link with CSS. But somehow it does
not work in IE (I am using 5.5).

Example code:

table class="mymenu"><tr><td><a href="http//www.somewhere.com/">A
link</a></td></tr></table

And in the stylesheet:

table.localmenu a
{ color: #f5fc70;
background-color:red;
}

I doubt that will work in any browser, since 'localmenu' is not quite
the same as 'mymenu'...

In Mozilla this will color the link text yellow. In IE it stays the
standard blue.
Oops, typing error when writing the message.
Quote:
Maybe you have more stylerules for <a> elements elsewhere in the
stylesheet?
Thanks for the suggestion. It helped me solve the problem. I had
forgotten to set a visited link. The new code is
table.localmenu a, table.localmenu a.visited {}



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.