MSFN Forum: IE6 - CSS User Style Sheet Question - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

IE6 - CSS User Style Sheet Question Rate Topic: -----

#1 User is offline   ajFranzman 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 12-October 10
  • OS:XP Home
  • Country: Country Flag

Posted 03 December 2010 - 01:11 AM

(Re: IE6-- I know, I know...)

I've been searching the web all day trying to find the answer to this, and it seems that either the answer just isn't out there, or I don't have the expertise/vocabulary to ask the question properly for Google.

Is it possible to put code into a user .css style sheet under MSIE 6 which will change the color of an element, based on its current color? What I want to do is, when the user on this machine hovers over a text hyperlink, change its color to dark green unless the link is originally white or yellow, in which case it should change to yellow.

I was able to find that CSS does not have an inequality operator (no such thing as :link:hover[color<>"white"] , for example) nor apparently any form of branching or if-then-else. I was hoping that perhaps a script making use of the "expression()" construct could work, but then I discovered that it's also seemingly not possible to add a class to an element (this can be done in HTML, but apparently not in a user .css stylesheet). I was thinking that if I could add an identifying class to the white or yellow links, then change any hovered link to dark green, then change the hovered link to yellow only if it is of the class previously identified as white or yellow, that that would work.

This post has been edited by ajFranzman: 03 December 2010 - 01:18 AM



Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy