Jump to content

img mobile full width

Recommended Posts

Site URL: https://www.johan.media/shop/p/himmeltinden


I'd like to have portrait image in full width on mobile size only

Here's my code to crop the image

.ProductItem-gallery-slides-item-image {
  object-fit: contain!important;
  width: 100% !important;

Now I wonder how I can make the div ="ProductItem-gallery-slides-item" to fit the image size in it.

Any idea?

I'd like to extend the code to other part of the website to have portrait image in full width on mobile size everywhere like here: https://www.johan.media/journal/right-before-the-pandemic-hit

Would love to have any input, thanks 🙂 

Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Try adding to Design > Custom CSS

.sqs-gallery-block-grid .slide .margin-wrapper a.image-slide-anchor img {
    width: 100% !important;
    height: auto !important;
    top: 0 !important;
    left: 0 !important;


Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.