# Following on from Adding Unique Class Names

**URL:** <https://meta.discourse.org/t/following-on-from-adding-unique-class-names/37881>\
**Category:** Feature\
**Created:** [January 13, 2016, 11:18am UTC](https://meta.discourse.org/t/following-on-from-adding-unique-class-names/37881 "2016-01-13T11:18:10Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [January 14, 2016, 6:05pm UTC](https://meta.discourse.org/t/following-on-from-adding-unique-class-names/37881/6 "2016-01-14T18:05:28Z")

</div>

Adding category class names to the table rows in the category-list seems like a good idea - the topic-list has them.

> [@ccdw](#):
>
> I’d also like to see the ability to add classes to posts as currently I have to add a tag to select a post,

Discourse could whitelist a class for divs and spans that was something like `custom-class-(class-number)` with `class-number` being any digit. The classes generated from that (`custom-class-1`, `custom-class-2`, etc.) could then be defined with custom css, or used to target a post with javascript.

> [@ccdw](#):
>
> the ability to add a class to unrelated elements and then select them by a single selector is key here.

To do that, maybe you could define a css rule that works on multiple selectors:

```css
.category-this,
.category-that {
  display: none;
}

```

---

_[View the full topic](https://meta.discourse.org/t/following-on-from-adding-unique-class-names/37881)._
