Forums

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

Home Forums CSS swap image as well as separate div content on click

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #253904
    Linda
    Participant

    I am hoping someone can assist me here. I am trying to set this up so that when a user clicks on an image, then that image state changes, and the content in a separate div, for the corresponding image also changes. I have managed to get it to work so that the div content changes depending on the image being clicked on, but I need the image to change states too, in this instance, the image needs to turn to red, and the previous active image needs to change back to its original state.

    Example of the page here, which will better illustrate what I am saying

    http://www.issentialdesigns.co.za/Cylerian/demo/html/index.html

    #253905
    Paulie_D
    Member

    The linked page isn’t very informative as to which image/div is supposed to alter etc.

    Could you make a reduced demo in Codepen.io so we can see what you have without having to deep dive into Web Inspector to see what is going on.

    Generally though, this sort of interaction is handled by Javascript.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.