Jump to content

Replacing two images on main page for mobile only

Recommended Posts

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

I have two images on my main page which are quite large for standard viewing on a computer, but they need to be replaced for mobile only (simply sizing the original images will not be suitable for mobile). I have tried a couple of different suggestions based on what I could find from others, but I cannot get the images to be replaced correctly. I believe that they can be replaced through simple CSS change? Any suggestions would be greatly appreciated.

image1.jpg

image2.jpg

Link to comment
  • Replies 1
  • Views 139
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Add to Design > Custom CSS

/* Mobile Homepage resize images */
@media screen and (max-width:767px) {
[data-section-id="61ef6f753429967472e53935"] {
    min-height: unset !important;
    height: 25vh !important;
}
[data-section-id="62354c1913777e6bedda6592"] {
    min-height: unset !important;
    height: 55vh;
}
}

 

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.