Jump to content

Banner image won't resize on mobile view

Recommended Posts

Site URL: https://www.garryrichardstud.com/hillstar-1

Hi there, 

The banner image on my website looks great on desktop view, but it gets majorly cropped when I view it on mobile (see below). Any tips on why this is happening, and how resolve it? As the majority of our users will be coming to the site on mobile, it is important to have this image displaying correctly? @tuanphan maybe you could help me?

Thanks 

processed.jpeg

Link to comment
  • Replies 3
  • Views 706
  • Created
  • Last Reply
On 4/7/2021 at 3:52 PM, hello2021 said:

Site URL: https://www.garryrichardstud.com/hillstar-1

Hi there, 

The banner image on my website looks great on desktop view, but it gets majorly cropped when I view it on mobile (see below). Any tips on why this is happening, and how resolve it? As the majority of our users will be coming to the site on mobile, it is important to have this image displaying correctly? @tuanphan maybe you could help me?

Thanks 

processed.jpeg

Hi. Remove the CSS code you used to add new image on mobile. Add this new CSS

/* Hillstar resize mobile banner */
@media screen and (max-width:767px) {
[data-section-id="6065ab66929e10210ae97d44"] {
    min-height: 20vh !important;
    height: 35vh;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 4/9/2021 at 11:08 AM, Emily88 said:

Yes, I am having a similar issue. Tried the code posted previously, not sure how to adjust the code he posted previously so that it can work for my site.

https://www.makingcentsofsaving.com/

Hi. Looks fine here. Did you solve problem?

image.thumb.png.e1a4a827af99bc232d5e39038c06b025.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.