Jump to content

Resize background image to fit mobile view.

Recommended Posts

  • Replies 1
  • Views 360
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

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.