Skip to main content
Solved

How to center image in email automation


I need to center the logo image of my client in the body of an email. How do I do that?  (Don't worry - I'm not using an image in an attachment field. )

This is what I currently have, but the image is not actually centered. Can anyone help?

<div style="text-align: center;">

<img width="400" src="https://static1.squarespace.com/static/myimageurl.jpg">

</div>

Best answer by TheTimeSavingCo

Hm, could you try removing the linebreaks so it looks like this? 

<div style="text-align: center;"><img width="400" src="https://static1.squarespace.com/static/myimageurl.jpg"></div>

That appears to work when I test it

View original
Did this topic help you find an answer to your question?

2 replies

TheTimeSavingCo
Forum|alt.badge.img+18

Hm, could you try removing the linebreaks so it looks like this? 

<div style="text-align: center;"><img width="400" src="https://static1.squarespace.com/static/myimageurl.jpg"></div>

That appears to work when I test it


  • Author
  • Inspiring
  • 51 replies
  • February 1, 2023

Thanks @TheTimeSavingCo! That worked like a charm. 😊


Reply