Jump to content

Formatting an image for mobile

Recommended Posts

  • Replies 5
  • Views 504
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

On 5/18/2021 at 2:45 AM, MaxAzulay said:

Site URL: https://www.maxazulay.com

Hi

I like the way the background image looks on my desktop on my site (www.maxazulay.com) but on my phone it's zoomed in and cropped. I don't want to have to change the image but I'd like it to be also properly formatted for mobile. 

Any help advised thank you

Add to Design > Custom CSS

/* resize home mobile banner */
@media screen and (max-width:640px) {
body.homepage figure img {
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
}
body.homepage .banner-thumbnail-wrapper.has-description {
    height: 160px;
    padding-top: 20px;
}
}

 

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 5/20/2021 at 9:55 PM, serenay said:

Hi Tuanphan, I am having the same issue too, would you kindly help me please?

 

I can't get the banner picture right for mobile. url is www.akana.com.au thanks a lot

 

 

Hi. It looks like you solved this?

image.thumb.png.96f1be1e6c83cb07ad65dd2d6a14be7b.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

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • 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.