Jump to content

PLEASE HELP! Trouble resizing image specifically for mobile

Recommended Posts

Site URL: https://seabass-wisteria-9mzs.squarespace.com/config/

Hi there,

I am having trouble sizing a couple of images on my site on the 'our story' page.
I am happy with how they are displayed on desktop, but i dont like how they are cropping when changing to the mobile spec. 

Could anyone help with the code i need to force these images to be uncropped (just showing the full width of the image in landscape size) when viewed in mobile please? 

img 1_Desktop.png

img 1_Mobile.png

img 2_Desktop.png

img 2_Mobile.png

Link to comment
  • Replies 11
  • Views 527
  • Created
  • Last Reply
On 5/11/2021 at 11:10 PM, RyanL said:

sorry not sure why that didn't work!

https://seabass-wisteria-9mzs.squarespace.com/config/
Konig2017!

Please try again

 

Add to Design > custom CSS

/* resize our story image */
@media screen and (max-width:767px) {
[data-section-id="6061d60e0720934f0647ed32"] .section-background-content {
    z-index: 999;
    position: relative !important;
}
[data-section-id="6061d60e0720934f0647ed32"] .section-background-canvas {
    visibility: hidden;
}
[data-section-id="6061d60e0720934f0647ed32"] img {
    visibility: visible !important;
    height: auto !important;
}
[data-section-id="6061d60e0720934f0647ed32"] {
    min-height: unset !important;
    height: 35vh !important;
}}

image.thumb.png.862c279687db7876ba665f629d0fcc31.png

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 weeks later...
16 hours ago, RyanL said:

Hi, thank you for your help.

If it isn't to trouble could you please help me further with the question above? 

You can change data-section-id. Use this tool to find data section id.https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff?hl=en

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

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.