# Assistance Needed with Persistent CSS Classname Change

**URL:** <https://community.glideapps.com/t/assistance-needed-with-persistent-css-classname-change/77339>\
**Category:** Ask for Help\
**Created:** [October 26, 2024, 12:38am UTC](https://community.glideapps.com/t/assistance-needed-with-persistent-css-classname-change/77339 "2024-10-26T00:38:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vanlalsiama\_bawihrin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vanlalsiama_bawihrin/32/32329_2.png) [@vanlalsiama\_bawihrin](https://community.glideapps.com/u/vanlalsiama_bawihrin)\
**Post date:** [October 26, 2024, 12:38am UTC](https://community.glideapps.com/t/assistance-needed-with-persistent-css-classname-change/77339/1 "2024-10-26T00:38:36Z")

</div>

Hi Glide team

I’ve created custom CSS to apply a drop shadow by targeting specific class names. Initially, this approach works well, but after a few days, the styles stop applying. Upon inspection, I found that the class names keep changing, which requires me to update the CSS repeatedly. This issue has occurred multiple times.

Could you please guide me on how to address this problem correctly? I’ve provided examples of the scenarios I’ve encountered.

Thank you for your assistance!

 ![Screenshot 2024-10-26 at 11.29.31 am](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/a/4a8374292e0849bcb8d3a97f7f8b02b3a265e8db.jpeg)  
 ![Screenshot 2024-10-26 at 11.29.48 am](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/2/726f94dfabea50de0c27a035bbdcd7b747163130.png)  
 ![Screenshot 2024-10-26 at 11.30.29 am](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/8/68b94237d1599a84233f27a71310e49950754273.png)  
 ![Screenshot 2024-10-26 at 11.30.38 am](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/4/64b222b37425faf1ac0759ca4e1c0dc5fdeb7a5b.png)

Best regards,  
Vanlal

---

<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:** [October 26, 2024, 1:32am UTC](https://community.glideapps.com/t/assistance-needed-with-persistent-css-classname-change/77339/2 "2024-10-26T01:32:09Z")

</div>

As you have found out, you’re using unstable class names there and those change all the time. Please inspect the underlying HTML structure again, find stable class names and target them like this: `div[class*="stable part here"]`.

It’s just an example, use div, button, span, p etc. depends on what you want.

---

<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:** [October 26, 2024, 1:46am UTC](https://community.glideapps.com/t/assistance-needed-with-persistent-css-classname-change/77339/3 "2024-10-26T01:46:24Z")

</div>

If I were to avoid using `*=` due to its matching all substrings, simply writing the class as `.class` would effectively target all elements that contain it.

---

<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:** [October 26, 2024, 1:55am UTC](https://community.glideapps.com/t/assistance-needed-with-persistent-css-classname-change/77339/4 "2024-10-26T01:55:45Z")

</div>

In addition to the issue of stability in class name selection, it’s important to note that `//` is used for comments in JavaScript, while in CSS, comments should be written as `/* ... */`. If a comment is not properly closed with `*/`, it can cause all the subsequent CSS code to become ineffective.

 ![726f94dfabea50de0c27a035bbdcd7b747163130](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/3/730a23db3b550f56a12dd61156ca10d5a7d2125f.png)
