Jump to content

Resize background image to fit mobile view.

Recommended Posts

Posted

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

Hello,

I seem to be having trouble getting the home page background to fit accordingly on mobile view. It looks good on the computer view but it's zoomed in and cuts off a lot of the picture when viewing from a phone. I'm not sure if there's a solution, but if there is, I would really appreciate the help!

Thanks

  • Replies 1
  • Views 473
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

Hi,

You can consider adding an one more section under current section, design image for mobile, then add this to Design > Custom CSS to show top section on desktop, show bottom section on mobile only

/* show top section on desktop */
@media screen and (min-width:768px) {
	body.homepage article section:nth-child(2) {
		display: none;
}
}
/* show bottom section on mobile */
@media screen and (max-width:767px) {
body.homepage article section:nth-child(1) {
		display: none;
}
}

 

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!)

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.