CMS Development

krissyhack
Member

Custom Module image issue

Hello! I am working on inserting a module used on one page on our website and inserting into a different template page on our website. We have this module working correctly here. (it is the cards that the model homes are on)

On a desktop, the image is appearing just fine, but on mobile or tablet, it is severely zoomed in regardless of the image dimensions I put on the image and the title text is left justified only on desktop not on mobile. See the preview issue here by clicking on the AVAILABLE HOMES square a bit down the page. 

Here are screenshots as well: Correct Mobile ViewCorrect Mobile ViewCorrect Desktop ViewCorrect Desktop ViewIncorrect Desktop View (Banner text is left justified)Incorrect Desktop View (Banner text is left justified)Incorrect Mobile View - photo enlargedIncorrect Mobile View - photo enlargedphoto enlarged pt. 2photo enlarged pt. 2

0 Upvotes
2 Replies 2
tjoyce
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

Custom Module image issue

It's the slick slider in HubSpot. I have seen this exact issue before without a really good work-around. The problem is that slick is initializing on page load but your content isn't available until the button is clicked to show the homes. So, slick doesn't know what width your images should be because they aren't visible yet in the viewport. I would opt to remove the slider and go for a basic grid in this case.

 

tim@belch.io

kcarpintieri
Participant

Custom Module image issue

Hi there!

 

The desktop version looks fine to me. The image is very zoomed in on mobile though. Maybe try to apply an inline style to the image?  Or apply a class? 

 

.responsive {
  width: 100%;
  height: auto;
}

 

or 

 

.responsive {
  max-width: 100%;
  height: auto;
}

0 Upvotes