Skip to content

peer for parent or outer element #13545

Answered by wongjn
sonmezcem asked this question in Help
Discussion options

You must be logged in to vote

You could consider making the parent <div> the peer and then use :has() via peer-has-*: https://play.tailwindcss.com/jpQ8956Bsy

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sonmezcem
Comment options

Answer selected by sonmezcem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants