Jump to content

CSS Custom code not working for resizing image block!

Recommended Posts

I am using this code to reduce the size of 'Amazon, Apple Books & Google Play Badges' images on my Home Index page on the Mobile version of website only (lifedeeperstill.squarespace.com) but nothing seems to be working. I upgraded my plan just to custom code! Would someone be able to check it out? 

 

#collection-5e26fcabf068c869feaa849f #block-yui_3_17_2_1_1577452920169_13860 {

@media screen and (max-device-width: 640px) {

.sqs-block-content .image-block-outer-wrapper  {

    width: 50%;

    height: 50%;

    margin: auto;        

   }

}

}

Screenshot 2020-01-22 at 6.36.09 PM.png

Link to comment
  • Replies 1
  • Views 1.2k
  • Created
  • Last Reply

edit the code to

@media screen and (max-device-width: 640px) {
#collection-5e26fcabf068c869feaa849f #block-yui_3_17_2_1_1577452920169_13860 {
.sqs-block-content .image-block-outer-wrapper  {

    width: 50%;

    height: 50%;

    margin: auto;        
   }

}

}

 

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.