Email Marketing Tool

YMT
Participant

Issue with creating responsive images in email

SOLVE

I've been trying to make these images mobile responsive with the Hubspot content builder (no html). But due to the padding I've added around the images, they divert left or right side of screen.

 

Any tips on making the images width stretch to fill screen on mobile?

 

Screen Shot 2020-12-09 at 4.36.46 PM.png

Screen Shot 2020-12-09 at 4.34.28 PM.png

0 Upvotes
1 Accepted solution
Ben_M
Solution
Key Advisor

Issue with creating responsive images in email

SOLVE

Without seeing the code, what I suspect is happening is that your image is actually smaller than the width of the container and that the max-width is set to the image max or the container max, whichever is lower.  This would be done to prevent an image from being stretched and pixelated by being made larger than its resolution.  As a best practice your images should always be larger than the containers so that they do not become pixelated.

View solution in original post

5 Replies 5
Ben_M
Key Advisor

Issue with creating responsive images in email

SOLVE

Can you please post a link to the page in question?

0 Upvotes
YMT
Participant

Issue with creating responsive images in email

SOLVE

Hi Ben,

 

I'm unable to share a link, but here's a screenshot of one of the image settings (again, not using html). If coding is the easiest way to maneuver around this issue, please let me know. Thanks!

 

Screen Shot 2020-12-11 at 10.35.50 AM.pngScreen Shot 2020-12-11 at 10.34.41 AM.png

 

Ben_M
Solution
Key Advisor

Issue with creating responsive images in email

SOLVE

Without seeing the code, what I suspect is happening is that your image is actually smaller than the width of the container and that the max-width is set to the image max or the container max, whichever is lower.  This would be done to prevent an image from being stretched and pixelated by being made larger than its resolution.  As a best practice your images should always be larger than the containers so that they do not become pixelated.

YMT
Participant

Issue with creating responsive images in email

SOLVE

Thanks for your help Ben. Everything works now.

0 Upvotes
natsumimori
Community Manager
Community Manager

Issue with creating responsive images in email

SOLVE

Hi @YMT ,

 

Thanks for reaching out to the HubSpot Community.

@Chris-M and @Ben_M , would you mind sharing your advice for @YMT ?

 

Also, I wanted to share these past community posts: