Jump to content

Changing image size using code (not only for mobile)

Recommended Posts

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

Hi smarter people than me,

I'm having a frustrating time uploading images to my site. If you have a look, there are small illustrations scattered in the home page and other pages. These were done in Adobe Illustrator. If I save then as 2500 px wide pngs (Squarespace's recommendation), they are way to big and reducing their size using space blocks either makes them too small or still too big. I have used photoshop for reducing their size (what you see now on the site), but they look blurry. So I'm thinking maybe the way to go is code? I've seen other threads with code for reducing image size in mobile, but couldn't find anything for reducing the size in all formats. Thank you in advance for your help. 

Also if there's a better way of doing this that's not code, I will happily hear suggestions. Thanks!

Link to comment
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

.image-block-outer-wrapper img {
    width: 50px !important;
    height: auto !important;
}
.image-block-outer-wrapper .image-block-wrapper {
    padding-bottom: 50% !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.