Forums

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

Home Forums CSS How to I style the whole row when checkbox is cheked?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #247045
    bgik77
    Participant

    http://codepen.io/bgik77/pen/wzObNQ

    because of the way of the html is structure, I don’t know how to target the entire rows.

    Any help is greatly appreciated!

    Thanks

    #247046
    Shikkediel
    Participant

    If you don’t wrap the input and label in that div, you’ll be able to target all of the siblings in the row for example. It is otherwise not possible with CSS to traverse back (up the tree) through the parent element.

    #247065
    bgik77
    Participant

    Thanks, at least now i know.

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