# CSS: Glide supports the :has() pseudo class!

**URL:** <https://community.glideapps.com/t/css-glide-supports-the-has-pseudo-class/77896>\
**Category:** Community Resources\
**Created:** [November 14, 2024, 1:44am UTC](https://community.glideapps.com/t/css-glide-supports-the-has-pseudo-class/77896 "2024-11-14T01:44:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [November 14, 2024, 1:44am UTC](https://community.glideapps.com/t/css-glide-supports-the-has-pseudo-class/77896/1 "2024-11-14T01:44:51Z")

</div>

For those that like to use custom css, I found that you can target the parent of a child element by using the `:has ( > ___ )` pseudo class.

I’ve been wanting to do this for years and it seems like its now supported by many browsers. @ThinhDinh has confirmed that it works on mobile too!

https://www.loom.com/embed/8ad8be6bb43748b5bd2bd0afc0c40244

---

<div class="post-metadata">

**Author:** ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)\
**Post date:** [November 14, 2024, 3:22am UTC](https://community.glideapps.com/t/css-glide-supports-the-has-pseudo-class/77896/2 "2024-11-14T03:22:07Z")

</div>

Yes, there are many advantages that can be achieved with `:has()`, including criteria for its hierarchy as well.

Additionally, you can use `[src="imgUrl"]` as a selector, for example, if you want to hide a specific row.

---

<div class="post-metadata">

**Author:** ![Sekayi\_Liburd](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sekayi_liburd/32/77608_2.png) [@Sekayi\_Liburd](https://community.glideapps.com/u/Sekayi_Liburd)\
**Post date:** [November 14, 2024, 7:01am UTC](https://community.glideapps.com/t/css-glide-supports-the-has-pseudo-class/77896/3 "2024-11-14T07:01:20Z")

</div>

Thanks to @Himaladin my app has been laced with “:has()” for quite a while now 😁

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [November 14, 2024, 1:32pm UTC](https://community.glideapps.com/t/css-glide-supports-the-has-pseudo-class/77896/4 "2024-11-14T13:32:41Z")

</div>

Ya @Himaladin is a CSS beast! 💅

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [November 15, 2024, 2:11am UTC](https://community.glideapps.com/t/css-glide-supports-the-has-pseudo-class/77896/6 "2024-11-15T02:11:31Z")

</div>

I learned `:has()` from him!

---

<div class="post-metadata">

**Author:** ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)\
**Post date:** [November 15, 2024, 4:30am UTC](https://community.glideapps.com/t/css-glide-supports-the-has-pseudo-class/77896/7 "2024-11-15T04:30:41Z")

</div>

Funny, because I was actually introduced to CSS by you! Such an inspiration!
