Okay here's my problem:
I have a cell that has both an image and text as a link (to the same place).
When hover over text, the background-color changes. I don't want the background color to change when hovering the image.
Is there a way I can get hovering the image to change the background-color of the text (but leave the background-color of the image alone)?
Is there a style that only applies to text?
Or would I need a javascript in here? If so which one?
ThanksYou could put a <span> around the text and apply the background color to it when it's hovered over.
IE(4 through 6)/Win only support :hover on <a> elements.
Three ways to simulate :hover in IE:
<!-- m --><a class="postlink" href="http://dean.edwards.name/IE7/">http://dean.edwards.name/IE7/</a><!-- m -->
<!-- m --><a class="postlink" href="http://www.htmldog.com/articles/suckerfish/">http://www.htmldog.com/articles/suckerfish/</a><!-- m -->
whatever:hover (<!-- m --><a class="postlink" href="http://www.xs4all.nl/~peterned/csshover.html">http://www.xs4all.nl/~peterned/csshover.html</a><!-- m -->)
I have a cell that has both an image and text as a link (to the same place).
When hover over text, the background-color changes. I don't want the background color to change when hovering the image.
Is there a way I can get hovering the image to change the background-color of the text (but leave the background-color of the image alone)?
Is there a style that only applies to text?
Or would I need a javascript in here? If so which one?
ThanksYou could put a <span> around the text and apply the background color to it when it's hovered over.
IE(4 through 6)/Win only support :hover on <a> elements.
Three ways to simulate :hover in IE:
<!-- m --><a class="postlink" href="http://dean.edwards.name/IE7/">http://dean.edwards.name/IE7/</a><!-- m -->
<!-- m --><a class="postlink" href="http://www.htmldog.com/articles/suckerfish/">http://www.htmldog.com/articles/suckerfish/</a><!-- m -->
whatever:hover (<!-- m --><a class="postlink" href="http://www.xs4all.nl/~peterned/csshover.html">http://www.xs4all.nl/~peterned/csshover.html</a><!-- m -->)