CSS not selector not working
My HTML is generated by wordpress.
I want to hide all elements but ones with
.page-item-2 so I use:
This works, but i also want to exclude
.page-item-46 from the selector:
That doesn’t work though.
.page-item-46 is not a descendant, therefore you would remove the space between the
:not pseudo classes:
For a more basic example, consider the following:
Using the following would exclude
.two from the selection: (example)
The following doesn’t: (example)
Neither does this: (example)
This doesn’t work either because it essentially selects all elements because both selectors are not mutually exclusive. (example)