Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Css changing a:hover on 2 things

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #36733
    deadmeat30
    Member

    Hi there,
    Im wondering if anyone can help me out here.
    I have a image, which has a a:hover action that creates a 3px border around the image, i also have text underneath, that on the a:hover makes a dotted underline. both goto the same page. Im wondering if there is any way to get it so scrolling over either the text or image, with make the other a:hover work, so they both goto a:hover state, instead of each on there own.
    regards,
    Alan

    #96952
    deadmeat30
    Member

    mate, thats worked a treat, thank you!

    #96953
    snillor
    Member

    I’ve been struggling with a similar thing – I have photo thumbnails with title overlays and wanted both to change appearance when the thumbnails are hovered.

    Thanks Senff, for such a simple solution (that I feel silly for not figuring out myself).

    #96966

    If you are using HTML5 then building on from what @Senff suggested, you could use the following:

    <a href="">
    <figure>
    <img src="" alt="">
    <figcaption>...</figcaption>
    </figure>
    </a>
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.