Center an image, CTA (legacy), or logo in an email or page
Last updated: May 22, 2023
Available with any of the following subscriptions, except where noted:
|
|
Legacy Marketing Hub Basic |
If you're using layout templates created in the design manager tool, center an image, CTA (legacy), or logo module on your page, blog, or email, by adding inline styling to your template.
If you're using a template that includes a drag and drop area, you can center module alignment within the content editor. You can also center modules in the page editor using horizontal spacers.
Center an image, CTA (legacy), or logo with inline styling
Please note:
- This method requires a basic understanding of HTML.
- If your page or template has an attached stylesheet or any additional styling added, there may be existing CSS affecting your image, CTA (legacy), or logo. HubSpot recommends working with a designer to identify the source of the styling and make the necessary changes to center your assets.
To center an image, CTA (legacy), or logo in an email or page template:
- In your HubSpot account, navigate to your landing pages, website page, blog post, or email dashboard.
- Hover over your page, blog post, or email, then click Edit.
- At the top of the content editor, click the Settings tab.
- On the settings tab, scroll down and click Advanced Options.
- In the Template section, click Edit this template. This action will open your template in the layout editor in a new tab or window.
- Within your layout template, click the logo, call to action, or image module to select it in the inspector.
- In the Inline Styling field, add the CSS text-align: center;

- In the upper right, click Publish changes to apply your changes to this template.
- Then, return to the content editor and refresh your web browser to populate the changes to your template. Your content in this module will now be centered on your page, blog, or email.
Center an image, CTA (legacy), or logo from your module's styling options
If you're using a template with a drag and drop area, in certain modules or sections, you can choose to set the alignment directly. Although, do note that this styling option may not be available on all templates or modules.
- To center your page modules:
- In your HubSpot account, navigate to your landing pages, website page, or blog post.
- Hover over your page or blog post, then click Edit.
- In the page editor, click on the module that you want to center.
- In the left panel, click the Styles tab.
- Click to expand the Alignment and spacing.
- Under Alignment, select the Center alignment.
- To center your email modules:
- In your HubSpot account, navigate to Marketing > Email.
- Hover over your page or blog post, then click Edit.
- Click on the module that you want to center.
- In the left panel, click the Alignment dropdown menu and select Center.
Center an image, CTA (legacy), or logo using horizontal spacers
If the module you're using does not have alignment options, from the page editor, you can add horizontal spacers to your page to center modules instead.
Please note: the horizontal spacer module is not available with Starter templates.
To center your module using a horizontal spacer:
- In your HubSpot account, navigate to your landing pages, website page, or blog post.
- In the search bar, search for horizontal spacer.
- Click and drag the horizontal spacers to each side of the module you want to center. Then, adjust the spacer's width to center your element.
Related content
-
Export your content and data
Learn how to export HubSpot content and data from your account, such as pages, contacts, and files. Please...
Knowledge Base -
Create a click-to-call or mailto link
When clicked, click-to-call buttons connect visitors on mobile devices with a specific phone number. Mailto...
Knowledge Base -
Add videos to your HubSpot content
With HubSpot video, you can upload videos to the files tool, then add them to pages, marketing emails, blog...
Knowledge Base