Jump to content

How to have home screen desktop image fit in the mobile version.

Recommended Posts

  • Replies 1
  • Views 275
  • Created
  • Last Reply
13 hours ago, MMFG said:

Site URL: http://www.remshaybooks.com

We would like our desktop home screen top image to fit better on our mobile version.  I have attached the image we would like to fit on the mobile layout.  If this is not possible, we would like to see if it is possible to have a different photo on our mobile layout that fits the dimension better.

SHAY AND REMY IN FIELD.jpg

I suggest use different image

@media only screen and (max-width: 600px) {
        section[data-section-id="5fcfa9157379aa3597820027"] .section-background {
          background: url(https://images.squarespace-cdn.com/content/v1/5fceb116ac3af166f92ba8af/1607442768624-XNZUAL8Z3R0GHRO23JM6/ke17ZwdGBToddI8pDm48kDhiFhwhEbuWfhGx309kaOZ7gQa3H78H3Y0txjaiv_0fDoOvxcdMmMKkDsyUqMSsMWxHk725yiiHCCLfrh8O1z5QHyNOqBUUEtDDsRWrJLTmUJhYbF90H-5_X8RF95sdnuudJRhatc2SFy8DEmyp89kVzu_kmRM_VcyREWdPFoZX/BOOK+1+-+COVER.jpg);
          background-size: cover;
          background-position: center center;
        }

        section[data-section-id="5fcfa9157379aa3597820027"] .section-background img {
          opacity: 0;
        }
}

Add this snippet into Design->Custom Css, when you got new image, replae the url accordingly

image.thumb.png.1fb2734a326ecbb6777eb392e8f1df4a.png

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. 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.