# Give span.subcategory a specific Class or Id for CSS styling

**URL:** https://meta.discourse.org/t/give-span-subcategory-a-specific-class-or-id-for-css-styling/59477
**Category:** Feature
**Created:** [2017年三月19日 11:35 UTC](https://meta.discourse.org/t/give-span-subcategory-a-specific-class-or-id-for-css-styling/59477 "2017-03-19T11:35:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Lutz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lutz/32/65103_2.png) [@Lutz](https://meta.discourse.org/u/Lutz)
#### Post date: [2017年三月19日 11:35 UTC](https://meta.discourse.org/t/give-span-subcategory-a-specific-class-or-id-for-css-styling/59477/1 "2017-03-19T11:35:05Z")

</div>

I want to style a single subcategory box in the desktop view via CSS. To make this possible, we need a way to select it.

"bla"is the category name. In the example, it could be `<span class "subcategory bla">`
