Feb 14, 2023 1 min read

How do I center text in Ghost?

Ghost usually wants to left align text, but there are times when you'd like text to be centered, such as when you want to add custom text to Outpost's Tip Jar page.

Sometimes you want text centered.

To do that, simply copy the code below, change what text you want to display, and insert it in an HMTL code block in Ghost.

<div style="text-align:center; width: 100%" >This is customizable text. </div>

This should display as centered text both on your site and as centered text in an email, if you send the post as an email or newsletter.

Ryan Singel
Ryan Singel
Ryan Singel is the co-founder of Outpost. He's a former journalist for Wired, the co-founder of online recommendation company Contextly, and a Fellow at Stanford's Center for Internet and Society.
Great! You’ve successfully signed up.
Welcome back! You've successfully signed in.
You've successfully subscribed to Outpost.
Your link has expired.
Success! Check your email for magic link to sign-in.
Success! Your billing info has been updated.
Your billing was not updated.