> For the complete documentation index, see [llms.txt](https://help.inspiredtheme.com/articles/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.inspiredtheme.com/articles/faqs/how-to-center-the-heading-of-sections.md).

# How to center the heading of sections?

Most sections have a built-in Heading alignment setting. For the rest, add one line of Custom CSS.

***

### 1. Use the Heading alignment setting

Most InspiredTheme sections have a built-in setting to center their heading. No code needed.

{% hint style="info" %}
**Steps:**

* In the theme editor, click the section you want to change.
* Find **Heading alignment** (called **Header alignment** in some sections) and select **Center**.
* Click **Save.**
  {% endhint %}

The setting is available in these sections:

|                     |                           |                    |
| ------------------- | ------------------------- | ------------------ |
| Blog posts          | Blog: Featured article    | Bundle builder     |
| Collage             | Collapsible content (FAQ) | Collection list    |
| Comparison table    | Counter                   | Expanding gallery  |
| Featured collection | Icon list                 | Image comparison   |
| Image with products | Multicolumn: Cards        | Multicolumn: Icons |
| Multicolumn: Media  | Multicolumn: Reveal       | Page               |
| Product bundle      | Shoppable video reels     | Steps timeline     |
| Tab collections     | Testimonials              | Video              |

Banner and text sections, such as **Image banner**, **Rich text**, **Media with text** and **Video banner**, have **Content alignment** settings instead, which align the heading together with the rest of the text.

### 2. Sections without the setting: use Custom CSS

If a section has no alignment setting, you can center its heading with a small piece of CSS. It only affects the section you add it to.

{% hint style="info" %}
**Steps:**

* In the theme editor, click the section.
* Scroll to the bottom of its settings and click **Custom CSS**.
* Paste the code below.
* Click **Save.**
  {% endhint %}

```css
h2 {
  margin: auto;
  text-align: center;
}
```

<figure><img src="https://t9008110498.p.clickup-attachments.com/t9008110498/fcf0f7e6-2c1f-4c83-9d37-b4b61ddb997f/Screenshot%202024-03-28%20at%204.15.42%E2%80%AFPM.png" alt="Custom CSS field at the bottom of the section settings"><figcaption></figcaption></figure>

{% hint style="warning" %}
Custom CSS is a Shopify feature that applies to that one section only. If you later remove the section, its CSS is removed too.
{% endhint %}
