# How can I customise CSS for each category? (as in having different design for each category)

**URL:** https://meta.discourse.org/t/how-can-i-customise-css-for-each-category-as-in-having-different-design-for-each-category/35822
**Category:** Development
**Created:** [19 november 2015 om 23:51 UTC](https://meta.discourse.org/t/how-can-i-customise-css-for-each-category-as-in-having-different-design-for-each-category/35822 "2015-11-19T23:51:54Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [20 november 2015 om 16:15 UTC](https://meta.discourse.org/t/how-can-i-customise-css-for-each-category-as-in-having-different-design-for-each-category/35822/4 "2015-11-20T16:15:12Z")

</div>

When you’re in a category, discourse adds the category slug to the body element. For example, on meta here when I visit the bug category I get `category-bug` in the body tag. If you use that as a selector you can style each category differently.

---

_[View the full topic](https://meta.discourse.org/t/how-can-i-customise-css-for-each-category-as-in-having-different-design-for-each-category/35822)._
