Jump to content

Coding for mobile background images

Recommended Posts

Site URL: https://bronze-chiton-c6g7.squarespace.com/

I am trying to figure out how to make the mobile version of the homepage of my website look better. All I've been able to do is make the first image fit a bit better but it is still hidden partly behind the header as well. Is there anyway to reduce the size of these background images for mobile and possibly lower them so the header doesn't overlap?

https://bronze-chiton-c6g7.squarespace.com/

Thank you

Link to comment
  • Replies 5
  • Views 318
  • Created
  • Last Reply
On 2/20/2021 at 12:10 AM, RPNesbitt said:

Designcast 

 

Sorry about that.

You mean homepage first image? Add this to Design > Custom CSS

/* resize home first banner image */
@media screen and (max-width:767px) {
body.homepage #page section:first-child {
    min-height: 20vh !important;
}
}

 

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
20 hours ago, tuanphan said:

You mean homepage first image? Add this to Design > Custom CSS


/* resize home first banner image */
@media screen and (max-width:767px) {
body.homepage #page section:first-child {
    min-height: 20vh !important;
}
}

 

That works for the first image but not for the rest as you scroll down. Is there anyway to make the rest do the same? Also the slide show doesn't work well on the Drawings. Is that possible to reduce in size on mobile? 

Thank you very much also!

Link to comment
On 2/23/2021 at 11:06 AM, RPNesbitt said:

That works for the first image but not for the rest as you scroll down. Is there anyway to make the rest do the same? Also the slide show doesn't work well on the Drawings. Is that possible to reduce in size on mobile? 

Thank you very much also!

Hi. Remove above & add new code

/* resize home images */
@media screen and (max-width:767px) {
body.homepage article section {
    min-height: 20vh !important;
}
}

 

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.