Alejandra Posted September 2, 2020 Share Posted September 2, 2020 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: This is the mobile view: 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
tuanphan Posted September 3, 2020 Share Posted September 3, 2020 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 Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Alejandra Posted September 3, 2020 Author Share Posted September 3, 2020 awesome! many thanks for your help 🙂 works perfect. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.