Jump to content

Resizing image block (HEIGHT ONLY) on mobile view

Recommended Posts

Site URL: https://www.mamondeconservation.com/services

Hi all, 

I've been trying to resize three image blocks on the mobile view of my site, but I'm struggling! I would like to ONLY REDUCE THEIR HEIGHT, and I'm not sure whether that's actually possible. Does the height/width ratio stays the same or can it be modified?

This is how you see them in the desktop view:

843947128_Screenshot2020-09-02at15_33_47.thumb.png.81b40486c9038756a7ecba34d541b4b1.png

 

This is the mobile view:

942634368_Screenshot2020-09-02at15_34_17.thumb.png.19f1337ba829434b1a6b2798f00b37bc.png

I would like each of the images to be 1/3 of their current height so even they are stacked on top of each other, they are still all visible at once and there's no need to scroll down. I've tried CSS code:

@media screen and (max-width: 640px) { 
#blockidnumber {
width: 80% !important;
margin: 0 auto;
}

which works fine to modify the width, but if I change the % in height and keep the same width, nothing happens.

 

Thanks in advance!!!

Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Add to Home > Design > Custom CSS

@media screen and (max-width:640px) {
section#my-work .image-inset {
    padding-bottom: 60% !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.