# CSS classes for tags

**URL:** <https://meta.discourse.org/t/css-classes-for-tags/58161>\
**Category:** Support\
**Created:** [March 1, 2017, 11:46am UTC](https://meta.discourse.org/t/css-classes-for-tags/58161 "2017-03-01T11:46:58Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [March 1, 2017, 2:20pm UTC](https://meta.discourse.org/t/css-classes-for-tags/58161/3 "2017-03-01T14:20:19Z")

</div>

Yeah, I was wondering if that would be helpful too, but I think this person wants to decorate other topic elements based on the existence of a tag, and that will be a tad more difficult, if not impossible to do in CSS alone.

There are a couple of things that could be done in Core to make this easier, such as, applying the tag classes to the topic entity itself on the topic listing and the actual topic.

Beyond that, I believe JavaScript would have to be used to read the tag class inside an entity and then apply a new class to its parent. But thoes are my thoughts on it as of right now.

---

_[View the full topic](https://meta.discourse.org/t/css-classes-for-tags/58161)._
