# Constantly changing classes (CSS, Rich Text)

**URL:** <https://community.glideapps.com/t/constantly-changing-classes-css-rich-text/71378>\
**Category:** Ask for Help\
**Created:** [March 3, 2024, 8:18pm UTC](https://community.glideapps.com/t/constantly-changing-classes-css-rich-text/71378 "2024-03-03T20:18:01Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aiva](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@Aiva](https://community.glideapps.com/u/Aiva)\
**Post date:** [March 3, 2024, 8:18pm UTC](https://community.glideapps.com/t/constantly-changing-classes-css-rich-text/71378/1 "2024-03-03T20:18:01Z")

</div>

I use CSS styles for many components of my Glide application. But it’s very tiring for me to update the code regularly due to the fact that the class names are constantly changing.

For example, there is an inline list, its title has class “.fhWlAsd” and values with class “.ityFvJ”. I need to change their colors, so, I write the code in Rich Text, but a week later the class names change (I don’t know why), and I need to change the class names to the new ones again on every screen in Rich Text. And it’s like this all the time. I’m tired of it.

Is there any solution to this? I will be very glad if someone can advise me how to be in such cases. I love Glide and don’t want to leave it, but it’s a bit frustrating and would really like to find a solution that will allow me to not have to deal with code updates just because of class name changes

---

<div class="post-metadata">

**Author:** ![Eric\_Penn](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/eric_penn/32/73888_2.png) [@Eric\_Penn](https://community.glideapps.com/u/Eric_Penn)\
**Post date:** [March 3, 2024, 8:41pm UTC](https://community.glideapps.com/t/constantly-changing-classes-css-rich-text/71378/2 "2024-03-03T20:41:28Z")

</div>

You could set the class name of the component or container under options

---

<div class="post-metadata">

**Author:** ![Aiva](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@Aiva](https://community.glideapps.com/u/Aiva)\
**Post date:** [March 3, 2024, 8:49pm UTC](https://community.glideapps.com/t/constantly-changing-classes-css-rich-text/71378/3 "2024-03-03T20:49:17Z")

</div>

Thank you so much, but I didn’t get it ☹ Sorry, please could you please answer more concisely or with an example?

---

<div class="post-metadata">

**Author:** ![Aiva](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@Aiva](https://community.glideapps.com/u/Aiva)\
**Post date:** [March 3, 2024, 8:55pm UTC](https://community.glideapps.com/t/constantly-changing-classes-css-rich-text/71378/4 "2024-03-03T20:55:37Z")

</div>

For example, when I want to change the color of this element (the title of the inline list), I write the code

`<p><style> .fhVlA-d { color: rgb(78, 133, 78); } </style></p>`

But after a few days the name of the class changes and my code needs to be updated, and this happens all the time…

 ![4748128](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/9/29d04ee5b20a7c14c2f7213f37599a14fb1c01e4.png)

---

<div class="post-metadata">

**Author:** ![Eric\_Penn](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/eric_penn/32/73888_2.png) [@Eric\_Penn](https://community.glideapps.com/u/Eric_Penn)\
**Post date:** [March 3, 2024, 8:58pm UTC](https://community.glideapps.com/t/constantly-changing-classes-css-rich-text/71378/5 "2024-03-03T20:58:18Z")

</div>

Hmmm are you using a classic app? If it’s a classic app I wouldn’t have any suggestions.

In your dashboard of all apps does the app say Classic?

---

<div class="post-metadata">

**Author:** ![Aiva](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@Aiva](https://community.glideapps.com/u/Aiva)\
**Post date:** [March 3, 2024, 9:00pm UTC](https://community.glideapps.com/t/constantly-changing-classes-css-rich-text/71378/6 "2024-03-03T21:00:37Z")

</div>

Yes, it’s a classic app. I’m a longtime Glide user 🙂

---

<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:** [March 3, 2024, 11:41pm UTC](https://community.glideapps.com/t/constantly-changing-classes-css-rich-text/71378/7 "2024-03-03T23:41:50Z")

</div>

That’s because you are using an unstable class name. As long as you can get a stable class name, then you don’t need to keep changing it, for example: [data-test="app-vertical-list] \> div \> div

---

<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:** [March 3, 2024, 11:50pm UTC](https://community.glideapps.com/t/constantly-changing-classes-css-rich-text/71378/8 "2024-03-03T23:50:59Z")

</div>

> [@Aiva](#):
>
> .fhVlA-d

Ya…anytime you see these random 5 characters, stay away. They’re bound to change.

---

<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:** [March 3, 2024, 11:51pm UTC](https://community.glideapps.com/t/constantly-changing-classes-css-rich-text/71378/9 "2024-03-03T23:51:00Z")

</div>

Yeah this is the correct take. If you use unstable class names, there’s a high chance it will only work for a certain OS only, not just them changing over time being the problem.

---

<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:** [March 3, 2024, 11:59pm UTC](https://community.glideapps.com/t/constantly-changing-classes-css-rich-text/71378/10 "2024-03-03T23:59:03Z")

</div>

In several cases in classic apps, I have found different hierarchies between GDE and applications.  
The new app is relatively more stable in this regard.
