Jump to content

How do I reduce the image size for full width images on mobile, so that they don't get cropped off?

Recommended Posts

Site URL: https://meridianhivedraftwebsite.squarespace.com/config/pages

HI, 

I wonder if anyone can help me out. I'm revamping our website and have some large full width images on multiple pages (Home page and landing pages). I'd like to reduce the size of the images for Mobile view to prevent them being cut off. 

I've reviewed previous suggestions/advice here but haven't found anything that works for me. 

I've installed an app that allows me to view squarespace block, image and section id's. However I still can't get it to display correctly. Here is an example of the code I've used (I've tried many more combinations):

/* mobile screens */
@media @mobile (max-width: 640px) {
  #section[data-section-id="5f778a51b907d97548c3d728"]{
  Width: 25%;
  Height: auto%;
  }
}

Attached is a couple of images 1. the desktop v 2. the mobile.

1681341626_MobileImage.png.df849e4490294982e9fe5520489e415d.png547284395_Desktopimage.thumb.png.824677d34b563bd102a7038e86ddbc86.png
 

Link to comment
  • Replies 5
  • Views 330
  • Created
  • Last Reply

Aboutus redirects to admin page, we can't access.

Lemond Landing page Add to Home > Design > Custom CSS

@media screen and (max-width:767px) {
body#collection-5f778963c503be0cadb2ecdc #page section:nth-child(2) {
    min-height: 30vh !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
2 hours ago, tuanphan said:

Aboutus redirects to admin page, we can't access.

Lemond Landing page Add to Home > Design > Custom CSS


@media screen and (max-width:767px) {
body#collection-5f778963c503be0cadb2ecdc #page section:nth-child(2) {
    min-height: 30vh !important;
}
}

 

You are a legend! That worked exactly as I would have hoped. I will take that and resize the rest of my landing pages. 

I truly appreciate your help, 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.