Home › Forums › CSS › Trying to select a non-specific div using its child › Reply To: Trying to select a non-specific div using its child
September 21, 2014 at 4:48 pm
#183789
__
Participant
CSS simply doesn’t have a “parent” selector. If you want to hide the album using CSS only, you’ll need to change the plugin to add some unique attribute to the parent div
that you can target.
On the other hand, finding+hiding it with javascript is fairly straightforward:
document
.querySelector('a[href*="Scrapbook"]')
.parentNode.style.display = 'none';
All gone. Just be sure to choose a selector that only matches the one specific anchor you want.