[thelist] CSS inheritance in IE

Tony Crockford tonyc at boldfish.co.uk
Sat May 6 02:06:14 CDT 2006

Dan CRACIUN wrote:

> I want to make the links in a header a different color from the rest of 
> the document. The following works as expected in Firefox and Opera, but 
> IE displays all links the same color. I'm probably googling for the 
> wrong search terms, cause I didn't find anything relevant.
> Any ideas?

I'd say it's because IE doesn't support child selectors (using > )

try using this instead

#Header a {color:#003;}
#Header a:link {color:#003;}
#Header a:visited {color:#003;}

(descendant selectors)


Join me: http://wiki.workalone.co.uk/
Thank me: http://www.amazon.co.uk/gp/registry/1VK42TQL7VD2F
Engage me: http://www.boldfish.co.uk/portfolio/

More information about the thelist mailing list