# How do I set the class to apply to a state as well?

**URL:** <https://community.weweb.io/t/how-do-i-set-the-class-to-apply-to-a-state-as-well/18451>\
**Category:** How do I?\
**Created:** [May 27, 2025, 1:06pm UTC](https://community.weweb.io/t/how-do-i-set-the-class-to-apply-to-a-state-as-well/18451 "2025-05-27T13:06:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Agustin\_Carozo](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/agustin_carozo/32/13231_2.png) [@Agustin\_Carozo](https://community.weweb.io/u/Agustin_Carozo)\
**Post date:** [May 27, 2025, 1:22pm UTC](https://community.weweb.io/t/how-do-i-set-the-class-to-apply-to-a-state-as-well/18451/2 "2025-05-27T13:22:33Z")

</div>

Hi Sean 👋

It’s not silly, I understand your thought process and it makes sense.

But the way Weweb is structured you will indeed need to create a new class for your states like hover.

> [@I feel stupid - styling html elements within a class](https://community.weweb.io/t/i-feel-stupid-styling-html-elements-within-a-class/9848/6):
>
> You’ll need to create a new class for the hover state. So your element will have a class for its default state, and another one applied for the hover state. You can organize your classes with folders so that it’s easier to look for them slight_smile Having said that, the way that it works might change for a more standarized behavior! Will let you know when it’s more defined on our end!

---

_[View the full topic](https://community.weweb.io/t/how-do-i-set-the-class-to-apply-to-a-state-as-well/18451)._
