# Div tags in user posts no longer working

**URL:** <https://meta.discourse.org/t/div-tags-in-user-posts-no-longer-working/227004>\
**Category:** Support\
**Created:** [May 14, 2022, 3:51am UTC](https://meta.discourse.org/t/div-tags-in-user-posts-no-longer-working/227004 "2022-05-14T03:51:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Caswal\_Parker](https://avatars.discourse-cdn.com/v4/letter/c/ecae2f/32.png) [@Caswal\_Parker](https://meta.discourse.org/u/Caswal_Parker)\
**Post date:** [May 14, 2022, 3:51am UTC](https://meta.discourse.org/t/div-tags-in-user-posts-no-longer-working/227004/1 "2022-05-14T03:51:13Z")

</div>

Not quite sure what has happened. A lot of users on our forums make use of HTML div tags for formatting their posts, e.g.

```plaintext
<div style="font-family:verdana; font-weight:bold; font-size:30px; text-align:center; ">Some Title Text </div>

```

This only affects making new posts, existing posts are fine. After my update to 2.9.0 beta4 from beta3. Users can no longer style their div tags? Is this fixable?

---

<div class="post-metadata">

**Author:** ![SaraDev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saradev/32/335139_2.png) [@SaraDev](https://meta.discourse.org/u/SaraDev)\
**Post date:** [May 17, 2022, 10:37pm UTC](https://meta.discourse.org/t/div-tags-in-user-posts-no-longer-working/227004/2 "2022-05-17T22:37:57Z")

</div>

I did not have a chance to test this with Discourse version 2.9.0 beta3, so I cannot speak as to how this was working in previous versions, however, I did confirm that div tags do not appear to be formatting in topic posts on version 2.9.0 beta4.

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [May 17, 2022, 10:58pm UTC](https://meta.discourse.org/t/div-tags-in-user-posts-no-longer-working/227004/3 "2022-05-17T22:58:06Z")

</div>

> [@Caswal\_Parker](#):
>
> This only affects making new posts, existing posts are fine. After my update to 2.9.0 beta4 from beta3. Users can no longer style their div tags? Is this fixable?

This is likely related to you uninstalling a plugin. Plugins may add certain tags and attributes to the allow list.

Style tag is not allowed by default as they can cause extreme amounts of abuse.

---

<div class="post-metadata">

**Author:** ![Caswal\_Parker](https://avatars.discourse-cdn.com/v4/letter/c/ecae2f/32.png) [@Caswal\_Parker](https://meta.discourse.org/u/Caswal_Parker)\
**Post date:** [May 17, 2022, 11:06pm UTC](https://meta.discourse.org/t/div-tags-in-user-posts-no-longer-working/227004/4 "2022-05-17T23:06:25Z")

</div>

Yeah, I figured it was probably due to having uninstalled awesome bbcodes.

I made a simple plugin to whitelist style tags again. Our forum is well moderated and so far hasn’t been a problem.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [June 16, 2022, 11:07pm UTC](https://meta.discourse.org/t/div-tags-in-user-posts-no-longer-working/227004/5 "2022-06-16T23:07:11Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
