Jump to content

Mobile view optimization help

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Looks like you've put some custom CSS in your site which sets the max-width to 90% for that section, so you're getting a 10% buffer on the right hand side

section[data-section-id="60fbf7ef70e98847868eeb6c"] .sqs-block-image, section[data-section-id="60fb96326797f949319ca91b"] .sqs-block-image {
    filter: grayscale(100%);
    max-width: 90%;
}

I assume you added this when laying out your images for desktop. not sure why the max-width is in there, but you need to come up with an alternative plan if you think you really need it. One way would be to wrap this custom rule in a media query so the 90% only applies at desktop widths. (leave the monochrome filter in its own rule so it works on mobile too). Use this in your custom css in place of wherever you put the above rule in.


section[data-section-id="60fbf7ef70e98847868eeb6c"] .sqs-block-image, section[data-section-id="60fb96326797f949319ca91b"] .sqs-block-image {
    filter: grayscale(100%);
}

@media screen and (min-width: 767px) {
  section[data-section-id="60fbf7ef70e98847868eeb6c"] .sqs-block-image, section[data-section-id="60fb96326797f949319ca91b"] .sqs-block-image {
      max-width: 90%;
  }
}

Hope that helps

Dave Hart. Software/Technology Consultant living in London. buymeacoffee 

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.