Forums

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

Home Forums CSS reveal div when radio button is checked

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

    Hi, I’ve tried to make this work, but I simply can’t get it to show the div, when the radio button with the class “yes” i checked.

    If I try to make a sibling div (instead of the input type=radio), and a on hover state change opacity, I can reveal the div, but not. when I try with radio button, and this code:

    https://codepen.io/bhsand76/pen/zYOrXea

    #294341
    Paulie_D
    Member

    You can’t do that with your current HTML sytucture as the input and div are not parent/child or siblings.

    The reveal div needs to come after the radio button in the same parent.

    https://codepen.io/Paulie-D/pen/JjPGQjG

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