Forums

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

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

#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.