Forums

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

Home Forums CSS How to get a hook on an element when another element (not a parent) is targeted Reply To: How to get a hook on an element when another element (not a parent) is targeted

#148499
rpk
Participant

I’ve received an approach for a working solution and wanted to post the answer in here too… If you put the “a” element of .toggler right after the ul of #togglenav then the following selector is possible which solves the initial problem:

#togglenav:target + .toggler