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

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.