CTAs

Edit the size of a CTA

Last updated: October 28, 2019

Applies to:

Marketing Hub  Professional, Enterprise
Legacy Marketing Hub Basic

Adjust the size of your CTA using the built-in sizing options and custom CSS. 

  • In your HubSpot account, navigate to Marketing > Lead Capture > CTAs.
  • Hover over a CTA and click the Actions dropdown menu, then select Edit.
  • In the slide-in panel, click Advanced options.

  • Clear the Size automatically checkbox, then enter size values in the Horizontal padding and Vertical padding fields.
  • Click Next >
  • Click Save, and then click Finish

To have the CTA fill the entire width of its container or module, after you have designed your custom button CTA:

  • Clear the Size automatically checkbox. 
  • In the Custom CSS field, enter your custom CSS.
  • Set the width to width: 100%;
  • Click Next >
  • Click Save, and then click Finish.

If you are embedding an image CTA on your non-HubSpot site, you may need to apply additional CSS declarations (such as width: 100%;) within your stylesheet to make the image CTA responsive.

What is retina optimization?

Retina optimization makes your CTA's image more crisp when viewed on your site pages and in emails if your recipients view the CTA in modern versions of Apple Mail and iOS mail; this is not supported by Outlook or webmail services like Gmail.  

Retina optimization is supported when you upload an image that is at least two times the size necessary for the CTA, similarly to how retina support works for all images across the internet. If you're creating a CTA that will be 400px by 100px, the uploaded image would need to be 800px by 200px to support an @2x pixel density display. CTAs support adding up to a 4x version, in this case uploading a 1600px by 400px image. The CTA will automatically be rendered on your website with a srcset attribute serving the 1x, 2x, 3x and 4x version where available. 

If the image is uploaded at the size the CTA will be rendered at (e.g., a 400px by 100px image is uploaded for a 400px by 100px CTA), this will not have retina support.

/cta/where-can-i-edit-the-size-of-a-cta