# 我的类别名称左对齐了，如何居中？

**URL:** <https://meta.discourse.org/t/my-category-name-is-aligned-to-the-left-how-to-center-it/278665>\
**Category:** Support\
**Tags:** category-banners\
**Created:** [2023年九月12日 01:30 UTC](https://meta.discourse.org/t/my-category-name-is-aligned-to-the-left-how-to-center-it/278665 "2023-09-12T01:30:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)\
**Post date:** [2023年九月12日 01:35 UTC](https://meta.discourse.org/t/my-category-name-is-aligned-to-the-left-how-to-center-it/278665/2 "2023-09-12T01:35:56Z")

</div>

听起来您有另一个组件或一些 CSS 代码将其对齐到左侧。默认是居中，这就是为什么当您从组件预览时它会居中的原因。我建议删除一些可能与之冲突的其他主题组件，直到找到罪魁祸首，然后您可能需要进行一些代码更改或其他操作来修复它。

---

_[View the full topic](https://meta.discourse.org/t/my-category-name-is-aligned-to-the-left-how-to-center-it/278665)._
