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.

  • This topic is empty.
Viewing 3 posts - 16 through 18 (of 18 total)
  • Author
    Posts
  • #114100
    Senff
    Participant

    @Yong: you’ll need to load a jQuery library and then call the code after the page has loaded. I could give you a step-by-step manual but I recommend you check out a tutorial at http://www.jquery.com, so you’d know what you’re doing.


    @Paulie_D
    : see what you mean, but I’ve had situations where I really needed to select a parent element if the child element had some class or other condition. Can’t remember what it was exactly, but just saying that it does happen sometimes! ;)

    #114101
    chrisburton
    Participant

    @Yong Try this:


    #114104

    I agree with @Paulie_D. If you can share a bit more information, I’m sure we can find a way to do what you want using the anchor instead of the list-item. Otherwise, I would suggest using a pure JS solution. Calling the entire jQuery library just for this is overkill.

Viewing 3 posts - 16 through 18 (of 18 total)
  • The forum ‘CSS’ is closed to new topics and replies.