Add class to specific instance of div using :has

:has(small), don’t you mean :has(.small)?

Your selector says your looking for a p.price in .price.full that has an element with the tagname small.

I agree with the others on showing the full html for getting the right answer.

Browse More Popular Posts

Leave a Comment