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?
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
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.
input
label
div
Thanks, at least now i know.