# 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:** 2

<div class="post-metadata">

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

</div>

You can absolutely apply CSS to a single tag. I recently did the same looking to capitalize a letter in a tag.

> [@Capitalize a tag in the UI](https://meta.discourse.org/t/capitalize-a-tag-in-the-ui/57756):
>
> The company I currently work for capitalizes its name in a unique way (capital in the middle). On our Discourse site, we have a tag that we’d like to use the same capitalization. I understand Discourse lowercases all tags in the back-end, which is perfectly fine. I’m hoping to use JS or CSS to change the tag in the UI. Is the following safe? Will it get all instances of a tag? Is there a better way to accomplish this? .tag-tag\_name\_here { visibility: hidden; position: relative; }…

In short, you can handle most cases with the following (replace `tag_name_here` with the tag you wish to style):

```plaintext
.tag-tag_name_here {
    // Declarations go here
}

```

Depending on the exact style you want, you may need more rules to handle all cases. You can see the final set of rules we came up with for my issue [here](https://meta.discourse.org/t/capitalize-a-tag-in-the-ui/57756/11).

---

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