Forums

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

Home Forums CSS To select a specific parent tag. Re: To select a specific parent tag.

#114048
TheDoc
Member

You cannot work backwards in CSS. I remember reading about parent selectors coming down the pipe, but I’m betting we’re still a couple years away from having support on that.

The simple solution here is to put the class on the list item.

  • Apple Link
  • This gives you total control over that list item. If you *can’t* modify the markup, then the only way you’re going to be able to select the parent `

  • ` is through JS.