# Best practices for creating custom CSS styles for sections of posts?

**URL:** https://meta.discourse.org/t/best-practices-for-creating-custom-css-styles-for-sections-of-posts/313904
**Category:** Development
**Created:** [June 27, 2024, 3:02am UTC](https://meta.discourse.org/t/best-practices-for-creating-custom-css-styles-for-sections-of-posts/313904 "2024-06-27T03:02:03Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [July 1, 2024, 1:22pm UTC](https://meta.discourse.org/t/best-practices-for-creating-custom-css-styles-for-sections-of-posts/313904/2 "2024-07-01T13:22:00Z")

</div>

> [@Isaac.Eiland-Hall](#):
>
> This does appear to work, but I’m curious to know if it is currently considered the best practice/method for this.

I’d recommend looking at [Generic bbcode wrapper for theme components](https://meta.discourse.org/t/generic-bbcode-wrapper-for-theme-components/123516)

> [@Isaac.Eiland-Hall](#):
>
> My div in my sample post is indeed right-aligned, but it is using Arial or similar, not my theme’s font, nor Playwrite.
> 
> Am I missing something stupid in my setup, or is there something else you can think of I’m missing? This is not a Discourse question.

Can’t think of anything based on what you’ve shared here. If you’re able to share a link to the live forum, that’ll make it easier for us to help you find the problem.

---

_[View the full topic](https://meta.discourse.org/t/best-practices-for-creating-custom-css-styles-for-sections-of-posts/313904)._
