#1
  1. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Mar 2008
    Posts
    675
    Rep Power
    38

    Gettin an image to rollover on "text" rollover


    OK, I have icons with text. The viewer can rollover the icon and see the changed state. The viewer can also rollover to the the changes state in the text. I need both changed states (i.e. image and text), to both change when one or the other is rolled over.

    Does my question make sense?
    Is there a fix for this in CSS?

    If so, then how?

    thanks!
    -S
  2. #2
  3. CSS & JS/DOM Adept
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jul 2004
    Location
    USA (verifiably)
    Posts
    20,131
    Rep Power
    4304
    You would need to change your selectors so that the ":hover" pseudo-class is a applied to a common ancestor, probably the closest one.
    Spreading knowledge, one newbie at a time.

    Check out my blog. | Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Common CSS Mistakes | Common JS Mistakes

    Remember people spend most of their time on other people's sites (so don't violate web design conventions).

IMN logo majestic logo threadwatch logo seochat tools logo