CMS Development

Yaqi
Participant

The image CTA doesn't display well on mobile phone

SOLVE

Hi,

 

The image CTA at the end of our blog article doesn't display well on mobile, the dimension changes. For example the image CTA on this page: https://blog.bepark.eu/en/how-to-transform-your-building-into-a-smart-building

 

How can we keep the image CTA with the good dimension on mobile devices?

 

Thank you in advance!

 

Regards,

Yaqi

 

0 Upvotes
1 Accepted solution
Krystina
Solution
Key Advisor | Diamond Partner
Key Advisor | Diamond Partner

The image CTA doesn't display well on mobile phone

SOLVE

If you are in the Design Manager, and you have none of the modules selected, you should be able to edit one of the .css style sheets attached to that template. It will look something like this on the right side of the page: 

 

Screen Shot 2019-11-01 at 8.48.57 AM.png

 

From there, you can drop in your code. I looked at this on your page for you and this piece of code you should be able to copy and paste in your editor and it should work:

 

.hs-cta-img {

height:auto;

}

Did this post help solve your problem? Help the community and mark it as a solution.
Krystina Gillenwater
A B2B Revenue Operations (RevOps) Firm.
HubSpot Diamond Partner BadgeA Diamond Solutions Partner
Book 15 Minutes with Krystina »

View solution in original post

0 Upvotes
4 Replies 4
Krystina
Key Advisor | Diamond Partner
Key Advisor | Diamond Partner

The image CTA doesn't display well on mobile phone

SOLVE

Add css of "height: auto;" on to the image

ie. - 

img {

  height: auto;

}

Did this post help solve your problem? Help the community and mark it as a solution.
Krystina Gillenwater
A B2B Revenue Operations (RevOps) Firm.
HubSpot Diamond Partner BadgeA Diamond Solutions Partner
Book 15 Minutes with Krystina »
Yaqi
Participant

The image CTA doesn't display well on mobile phone

SOLVE

Hi @Krystina , thank you for your reply.

 

I am wondering where i can add this css to image?  

 

On our blog post template on design manager or somewhere in the image cta settings? 

 

Thanks!

 

Screen Shot 2019-10-31 at 10.33.03.pngScreen Shot 2019-10-31 at 10.32.28.png

0 Upvotes
Krystina
Solution
Key Advisor | Diamond Partner
Key Advisor | Diamond Partner

The image CTA doesn't display well on mobile phone

SOLVE

If you are in the Design Manager, and you have none of the modules selected, you should be able to edit one of the .css style sheets attached to that template. It will look something like this on the right side of the page: 

 

Screen Shot 2019-11-01 at 8.48.57 AM.png

 

From there, you can drop in your code. I looked at this on your page for you and this piece of code you should be able to copy and paste in your editor and it should work:

 

.hs-cta-img {

height:auto;

}

Did this post help solve your problem? Help the community and mark it as a solution.
Krystina Gillenwater
A B2B Revenue Operations (RevOps) Firm.
HubSpot Diamond Partner BadgeA Diamond Solutions Partner
Book 15 Minutes with Krystina »
0 Upvotes
Yaqi
Participant

The image CTA doesn't display well on mobile phone

SOLVE

@Krystina Thanks a lot Krystina, it works!

0 Upvotes