# Any live examples of category-specific CSS styling?

**URL:** <https://meta.discourse.org/t/any-live-examples-of-category-specific-css-styling/48964>\
**Category:** UX\
**Created:** [2016 年8 月 21 日 23:39 UTC](https://meta.discourse.org/t/any-live-examples-of-category-specific-css-styling/48964 "2016-08-21T23:39:06Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

作者： ![LilTrashPanda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/liltrashpanda/32/62053_2.png) [@LilTrashPanda](https://meta.discourse.org/u/LilTrashPanda)\
发布日期： [2016 年10 月 14 日 00:03 UTC](https://meta.discourse.org/t/any-live-examples-of-category-specific-css-styling/48964/7 "2016-10-14T00:03:46Z")

</div>

Happy to see this particular subject come back up! Since I’m a beginner at CSS and I’m still learning how to get everything to work in Discourse (as there are quite a few tabs that make things a bit confusing for me), I was wondering what was meant by:

> [@zogstrip](#):
>
> You can already do this if you’re an administrator. Just prefix your rules with the appropriate category class.

In the CSS tab under Admin / Customize / CSS/HTML / CSS, I’ve tried  
`category-categoryname.category-list{...`  
`.categoryname-category-list{...`  
`.category-list-categoryname{...`

…and nothing seems to make the category-specific CSS stick. What’s the proper way to prefix this?

**How I’m Using It:**  
I’m in the process of creating a forum that’ll be handling multiple brands, with each brand as a “Parent” category with 4-5 “child” categories beneath it. Since each brand has a very unique visual language, the “Parent” category and each of their “child” categories for each need to look very different from one another.

Ultimately, having some kind of “theme” browser for Discourse would be amazing! I’m able to best edit CSS and HTML when I have it all exposed to me and I can tweak things and see them live update, so things are a bit slow-going for me with my Discourse customization as it’s a lot of _right-click_, _inspect_, _kind of locate what I’m looking for_, _put it in the CSS editor_, “Nope, wrong thing…”, _repeat_. 😰

If I’m able to figure out the proper prefix for category-specific CSS-styling, I’d be more than happy to share a live example when our forums go live! 😉

---

_[View the full topic](https://meta.discourse.org/t/any-live-examples-of-category-specific-css-styling/48964)._
