# Highlighting certain topics in topic list view

**URL:** <https://meta.discourse.org/t/highlighting-certain-topics-in-topic-list-view/41924>\
**Category:** Product Support\
**Created:** [April 2, 2016, 10:58am UTC](https://meta.discourse.org/t/highlighting-certain-topics-in-topic-list-view/41924 "2016-04-02T10:58:02Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Hammad\_Abbasi](https://avatars.discourse-cdn.com/v4/letter/h/90db22/32.png) [@Hammad\_Abbasi](https://meta.discourse.org/u/Hammad_Abbasi)\
**Post date:** [October 12, 2016, 12:29pm UTC](https://meta.discourse.org/t/highlighting-certain-topics-in-topic-list-view/41924/3 "2016-10-12T12:29:40Z")

</div>

Tags have title attribute so you can use css selector (badge-category[title=“tag-title.”] ) to apply any style on them but if you want to highlight the entire row then you have to select parent which i don’t think is possible via css.

I would use javascript to achieve this

```plaintext
var allrows =document.querySelectorAll("a[title=\"new topic\"]");
for( i in allrows) {allrows[i].parentNode.parentNode.style.backgroundColor="#FFFFE0";}

```

I was able to highlight topics tagged with “new”

 ![](https://global.discourse-cdn.com/meta/original/3X/d/7/d75f9555026b1059e1439b6b07d7bf7ad5fbc671.png)

---

_[View the full topic](https://meta.discourse.org/t/highlighting-certain-topics-in-topic-list-view/41924)._
