Have you ever thought about a CSS selector where you check if a specific element exists within a parent? For example, if a card component has a thumbnail, we need to add display: flex to it. This hasn’t been possible in CSS but now we will have a new selector, the CSS :has which will help us to select the parent of a specific element and many other things. In this article, I will explain the probl
![CSS :has Parent Selector](https://cdn-ak-scissors.b.st-hatena.com/image/square/52ca0669793372e4e3cab718843d27d77e80c396/height=288;version=1;width=512/https%3A%2F%2Fishadeed.com%2Fassets%2Fcss-has%2Ftwitter-card.jpg)