# Custom css inside a post / adding custom classes

**URL:** <https://meta.discourse.org/t/custom-css-inside-a-post-adding-custom-classes/143072>\
**Category:** Development\
**Created:** [March 2, 2020, 11:55am UTC](https://meta.discourse.org/t/custom-css-inside-a-post-adding-custom-classes/143072 "2020-03-02T11:55:09Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [April 17, 2021, 1:28am UTC](https://meta.discourse.org/t/custom-css-inside-a-post-adding-custom-classes/143072/9 "2021-04-17T01:28:11Z")

</div>

I just tried the same code out and it works ok for me. Maybe try:

```css
div[data-theme-bot] {
  color: red !important;
}

```

If that works then it means some CSS somewhere else (a theme, component, or plugin) was more specific than this style, so it was being overridden.

---

_[View the full topic](https://meta.discourse.org/t/custom-css-inside-a-post-adding-custom-classes/143072)._
