# HTML/CSS in posts

**URL:** https://meta.discourse.org/t/html-css-in-posts/300614
**Category:** Support
**Created:** [March 23, 2024, 1:32am UTC](https://meta.discourse.org/t/html-css-in-posts/300614 "2024-03-23T01:32:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![JPD](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jpd/32/371816_2.png) [@JPD](https://meta.discourse.org/u/JPD)
#### Post date: [March 23, 2024, 1:32am UTC](https://meta.discourse.org/t/html-css-in-posts/300614/1 "2024-03-23T01:32:45Z")

</div>

Is there any option (or is there any chance such an option will be added in foreseeable future) to be able use HTML tags with inline styles in posts? For example:

```plaintext
<TABLE style="border-collapse: collapse; font-size: 10pt; font-family: Arial">
<COLGROUP>
<COL style="width: 46px"/>
<COL style="width: 46px"/>
</COLGROUP>
<TR style="height: 20px">
<TD colspan="17" style="font-size: 8pt; background-color: #ff9fec; text-align: center; vertical-align: bottom; padding: 2px 2px 4px 4px">
abc...def</TD>
<TD style=" font-size: 8pt; background-color: #ff9fec; text-align: center; vertical-align: bottom; padding: 2px 2px 4px 4px">
abc...def
</TD>
</TR>
</TABLE>

```

---

<div class="post-metadata">

### Author: ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)
#### Post date: [March 23, 2024, 2:26am UTC](https://meta.discourse.org/t/html-css-in-posts/300614/2 "2024-03-23T02:26:51Z")

</div>

| abc...def | abc...def |

This is your code posted

---

<div class="post-metadata">

### Author: ![JPD](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jpd/32/371816_2.png) [@JPD](https://meta.discourse.org/u/JPD)
#### Post date: [March 23, 2024, 3:48am UTC](https://meta.discourse.org/t/html-css-in-posts/300614/3 "2024-03-23T03:48:36Z")

</div>

The key part is making it look like on the screen (in a browser), which would be:

![discourse2](https://global.discourse-cdn.com/meta/original/4X/7/0/7/707aa56a20d0881f3b9228c418639e221be2c958.png)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 4, 2024, 12:05pm UTC](https://meta.discourse.org/t/html-css-in-posts/300614/4 "2024-06-04T12:05:47Z")

</div>

There isn’t the option to have a free range of html/css usable in posts but you can extend what’s possible by installing the [Discourse BBCode](https://meta.discourse.org/t/discourse-bbcode/65425) plugin, or by creating pre-styled custom wraps:

> [@Customize posts' contents with your own styles](https://meta.discourse.org/t/customize-posts-contents-with-your-own-styles/257738):
>
> Requirementsinformation_source To be able to use these tips and tricks, you need to be an administrator of either a self-hosted Discourse instance or a [Discourse-hosted plan](https://discourse.org/pricing) higher than Basic. Introduction Discourse supports several methods to format and customize a post’s contents. You can find the list here: But sometimes, you’ll want something more specific, for example, a link that looks like a button. [Green button] This is the kind of modification we’ll learn here. The logic I’l…
