# ¿Creando estilos CSS para un tema específico?

**URL:** <https://meta.discourse.org/t/crafting-css-styling-for-a-specific-topic/118787>\
**Category:** Product Support\
**Created:** [27 Mayo, 2019 13:33 UTC](https://meta.discourse.org/t/crafting-css-styling-for-a-specific-topic/118787 "2019-05-27T13:33:33Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [27 Mayo, 2019 19:33 UTC](https://meta.discourse.org/t/crafting-css-styling-for-a-specific-topic/118787/4 "2019-05-27T19:33:25Z")

</div>

> [@craigconstantine](#):
>
> Is there a way to add IDs or classes into the DOM via the topic editor?

If you need to add styles to posts, you can wrap the post content in a `div` that has a `data` attribute. The `data` attribute will not be stripped from `div` tags. For example, if you create a post with the following HTML:

```html
<div data-custom>
This is in a custom div
</div>

<div data-custom=true>
This is a custom div with the attribute set to true
</div>

```

you can target the divs with the following CSS:

```css
[data-custom] {
    color: blue;
}

[data-custom=true] {
    background: red;
}

```

---

_[View the full topic](https://meta.discourse.org/t/crafting-css-styling-for-a-specific-topic/118787)._
