Jump to content

Resize images only one page or block at a time?

Recommended Posts

Site URL: https://www.echargeinstalls.com

Hello, 

On the desktop version the size is correct, on the mobile version they're big as hell. 

this is the page I'm talking about https://www.echargeinstalls.com/nl/wallboxpulsarplus

I tried:

@media only screen and (max-width:640px) { .sqs-block-image {width:60%; margin:auto}}

But this of course resizes all images on the website, which I don't want. I only want to target specific image blocks to resize.

Thanks in advance!

Link to comment
  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

6 hours ago, Arenshi said:

Site URL: https://www.echargeinstalls.com

Hello, 

On the desktop version the size is correct, on the mobile version they're big as hell. 

this is the page I'm talking about https://www.echargeinstalls.com/nl/wallboxpulsarplus

I tried:

@media only screen and (max-width:640px) { .sqs-block-image {width:60%; margin:auto}}

But this of course resizes all images on the website, which I don't want. I only want to target specific image blocks to resize.

Thanks in advance!

You can combine using the block id selector to set style for this block only. Here is an example

@media only screen and (max-width:640px) { 
  #blockid.sqs-block-image {
    width:60%; margin:auto
  }
}

An extension to get block id: Squarespace ID Finder: https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff?hl=en

Here is how to use it: https://recordit.co/kUIH4uco0b

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

Hello,

thanks already for the reply. 

Sorry for the newbie question but I can't seem to find the good implementation of the code. 

How would the code look like using this block for example? #block-54dd822535bd225152ca

 

@media only screen and (max-width:640px) { 
  #blockid.sqs-block-image {
    width:60%; margin:auto
  }
}

 

 

Link to comment
On 3/14/2022 at 2:28 AM, Arenshi said:

Hello,

thanks already for the reply. 

Sorry for the newbie question but I can't seem to find the good implementation of the code. 

How would the code look like using this block for example? #block-54dd822535bd225152ca

 

@media only screen and (max-width:640px) { 
  #blockid.sqs-block-image {
    width:60%; margin:auto
  }
}

 

 

Hi,

Which images are you referrring to? We can give the exact code

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
  • 4 weeks later...

Hi I have a kind of same question here.

I would only want to resize the mobile product image without changing any thing on the desktop display, but I couldn't get it done.
From my experience, that image has only one id so its bothering either desktop or mobile.

Link to comment
On 4/7/2022 at 2:03 PM, Eustace said:

Hi I have a kind of same question here.

I would only want to resize the mobile product image without changing any thing on the desktop display, but I couldn't get it done.
From my experience, that image has only one id so its bothering either desktop or mobile.

Can you share link to page where you use image? We can check easier

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.