# Can I color rows in a topic list according to tags?

**URL:** <https://meta.discourse.org/t/can-i-color-rows-in-a-topic-list-according-to-tags/245794>\
**Category:** Product Support\
**Created:** [November 16, 2022, 4:57pm UTC](https://meta.discourse.org/t/can-i-color-rows-in-a-topic-list-according-to-tags/245794 "2022-11-16T16:57:36Z")\
**Posts on this page:** 2\
**Page:** 1

## AI-generated summary

In the Support category, [spinitom](/t/-/245794/1) inquires about customizing the topic list display by assigning background colors to rows based on their tags. They note that while category classes are present in the `<tr>` elements, tag classes appear to be missing, and ask if there is a method to include them or otherwise alter topic displays. [Falco](/t/-/245794/2) responds by clarifying that CSS classes for tags are indeed present in the `<tr>` elements on the Meta homepage, providing a code snippet as evidence of the `tag-data-explorer` class being included in the row's class list.

<div class="post-metadata">

**Author:** ![spinitom](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@spinitom](https://meta.discourse.org/u/spinitom)\
**Post date:** [November 16, 2022, 4:57pm UTC](https://meta.discourse.org/t/can-i-color-rows-in-a-topic-list-according-to-tags/245794/1 "2022-11-16T16:57:37Z")

</div>

In a topic list, such as the one shown below, I’d like to be able to assign tags that affect display of the row, like changing its background color.

I see that category is in the `<tr>`'s class list but not tags. Is there a way to get them there?

Or some way we can change the display of different topics?

* * *

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/7/9/c79499597693af890a8dc5be6a523f9ba4194636.png)

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [November 16, 2022, 5:07pm UTC](https://meta.discourse.org/t/can-i-color-rows-in-a-topic-list-according-to-tags/245794/2 "2022-11-16T17:07:16Z")

</div>

> [@spinitom](#):
>
> I see that category is in the `<tr>`'s class list but not tags. Is there a way to get them there?

I see CSS classes for tags in the `tr`s here in Meta homepage.

```plaintext
<tr data-topic-id="245569" id="ember565" class="topic-list-item category-support tag-data-explorer unseen-topic ember-view">

```
