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

Home Forums CSS The :not pseudoclass and direct descendant weirdness

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #259169

    Reduced test case:

    I’ve noticed :not works as expected (i.e. the second link is blue) if it is a direct descendant of .widget-area, but unfortunately I need to keep .another-div in there for other reasons.

    Any idea what’s going on?

    Thank you in advance.


    Wait, I think I just answered my own question.

    After adding the direct descendant selector it now works as I want it to:

    Think I’m good now. Sorry for the trouble.

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