# CSS subclass for rowcoloring

**URL:** <https://forum.servoy.com/t/css-subclass-for-rowcoloring/15385>\
**Category:** Classic Servoy\
**Created:** [January 20, 2012, 8:35am UTC](https://forum.servoy.com/t/css-subclass-for-rowcoloring/15385 "2012-01-20T08:35:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [January 20, 2012, 8:35am UTC](https://forum.servoy.com/t/css-subclass-for-rowcoloring/15385/1 "2012-01-20T08:35:06Z")

</div>

Hi,  
on the support site I followed this: [https://support.servoy.com/browse/SVY-1287](https://support.servoy.com/browse/SVY-1287)

So I have added this into my CSS:

```auto
form.somethingdifferent odd, form.somethingdifferent even, form.somethingdifferent selected {
    background-color: #FF0000;
}

```

But now I can’t select this subclass: somethingdifferent, as a style on my form… It is simply not in the dropdown menu.  
I have the same issue with portals, for which I filed a case, is this also a bug?

Using Servoy 6.0.4i2

---

<div class="post-metadata">

**Author:** ![Joas](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/joas/32/5095_2.png) [@Joas](https://forum.servoy.com/u/Joas)\
**Post date:** [January 20, 2012, 3:03pm UTC](https://forum.servoy.com/t/css-subclass-for-rowcoloring/15385/2 "2012-01-20T15:03:21Z")

</div>

The style form.somethingdifferent has to exist before you can do this.

So it will work if you add this to your stylesheet:

```auto
form.somethingdifferent {}

```

---

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [January 20, 2012, 3:16pm UTC](https://forum.servoy.com/t/css-subclass-for-rowcoloring/15385/3 "2012-01-20T15:16:21Z")

</div>

Yep thanks Joas,

I came to the same conclusion!
