Home › Forums › CSS › Use :hover to target another element › Reply To: Use :hover to target another element
November 21, 2013 at 6:39 pm
#156859
Participant
you can use the “+” or “~” selector to choose the element after current;
like this html
input b b
input:checked + b will take the element after input when it :checked(just one)
input:checked ~ b will take all the element after input when it :checked.
check the demo: http://codepen.io/anon/pen/lywAp
bad english, hope you can understand.