I've been working on upping my CSS skills lately and came across of the question whether or not there are CSS parent sectors - and I haven't been able to figure this one out.
Anyone got some wisdom to impart?
I've been working on upping my CSS skills lately and came across of the question whether or not there are CSS parent sectors - and I haven't been able to figure this one out.
Anyone got some wisdom to impart?
For further actions, you may consider blocking this person and/or reporting abuse
Ann Lee -
Scofield Idehen -
Fullstack AI -
ajayyadav -
Once suspended, gwin will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, gwin will be able to comment and publish posts again.
Once unpublished, all posts by gwin will become hidden and only accessible to themselves.
If gwin is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to Gwene .
They can still re-publish the post if they are not suspended.
Thanks for keeping CodeNewbie Community 🌱 safe. Here is what you can do to flag gwin:
Unflagging gwin will restore default visibility to their posts.
Top comments (3)
There isn't an explicit parent selector, but in the CSS selectors of level 4, it is defined the :has() pseudo-class which allows to select an element based on the selectors passed to the
:has()
. That would allow to select an element based on their children, providing a "parent" selector (e.g.div:has(> img)
would select the div that is a direct parent of an img)... Unfortunately, it is not supported by any browser at the moment.No, there is no CSS parent selector.
css-tricks.com/parent-selectors-in...