Blog, Website & Page Publishing

EReid97
Member

Images squashed when added to blog

SOLVE

Screenshot 2023-04-21 at 17.40.20.png

 

Whenever I try to add an image into my blog it gets widened and can not be adusted. The image looks normal on desktop preview but on mobile preview it stays looking like the image attached. Adjusting the aspect ratio makes no difference, changing the size of the image itself doesn't help, I'm not sure how to make it look like the original image.

0 Upvotes
2 Accepted solutions
SamGerdt
Solution
Member | Elite Partner
Member | Elite Partner

Images squashed when added to blog

SOLVE

ss.jpg

 

Here's the CSS rule that's breaking the image on mobile. It's on line 842 of main.min.css. That max-height rule is set to !important, which will prevent you from fixing it within the blog editor. You need to update this CSS file to remove or adjust that rule.

 

Hope that helps!

View solution in original post

0 Upvotes
SamGerdt
Solution
Member | Elite Partner
Member | Elite Partner

Images squashed when added to blog

SOLVE
You would need to fix it in Design Tools. I would recommend showing the
problem to your web developer if you are not familiar with this area of
HubSpot. I think the best I can do is point you in the right direction.

Best,
Sam

View solution in original post

0 Upvotes
8 Replies 8
SamGerdt
Member | Elite Partner
Member | Elite Partner

Images squashed when added to blog

SOLVE

The most likely cause of this is a CSS rule in your template that is displaying the image with a default width of 100% (or some similar rule). Can you post a link to the affected page?

EReid97
Member

Images squashed when added to blog

SOLVE

I've removed the image for now but this is the blog page we are trying to add the image to https://www.talentdesk.io/blog/freelancers-vs-contractors-the-main-differences-you-should-know

0 Upvotes
SamGerdt
Member | Elite Partner
Member | Elite Partner

Images squashed when added to blog

SOLVE

Thanks. Any chance you can show me the page with the squashed image loaded?

0 Upvotes
EReid97
Member

Images squashed when added to blog

SOLVE

https://www.talentdesk.io/blog/freelancers-vs-contractors-the-main-differences-you-should-know i've added it again, should be updated. It will look okay on desktop but on mobile it won't

0 Upvotes
SamGerdt
Solution
Member | Elite Partner
Member | Elite Partner

Images squashed when added to blog

SOLVE

ss.jpg

 

Here's the CSS rule that's breaking the image on mobile. It's on line 842 of main.min.css. That max-height rule is set to !important, which will prevent you from fixing it within the blog editor. You need to update this CSS file to remove or adjust that rule.

 

Hope that helps!

0 Upvotes
EReid97
Member

Images squashed when added to blog

SOLVE

Thanks for figuring that out! Do you have any advice on where or how I could fix this?

0 Upvotes
SamGerdt
Solution
Member | Elite Partner
Member | Elite Partner

Images squashed when added to blog

SOLVE
You would need to fix it in Design Tools. I would recommend showing the
problem to your web developer if you are not familiar with this area of
HubSpot. I think the best I can do is point you in the right direction.

Best,
Sam
0 Upvotes
EReid97
Member

Images squashed when added to blog

SOLVE

Okay I'll see what I can do. Thanks for the help

0 Upvotes