BennyCC Posted July 23, 2021 Share Posted July 23, 2021 Site URL: http://www.okayokayla.com I am trying to resize the image on the first page of my site so the height fits in the mobile browser. I have tried different codes, but nothing has worked to change the height (medium size fits perfect in testing) See examples: Desktop View is perfect: Mobile View Height needs to shrink to fit: Link to comment
Wolfsilon Posted July 23, 2021 Share Posted July 23, 2021 Hello, Try this: section[data-section-id="60ac2acc4bc21d6a986068b1"] { min-height: clamp(0px, 56.25vw, 100vh); } Hope this helps! -Dan Link to comment
BennyCC Posted July 23, 2021 Author Share Posted July 23, 2021 @Wolfsilon Thanks for the reply. I applied the code, but no changes at all. Link to comment
Wolfsilon Posted July 23, 2021 Share Posted July 23, 2021 Try: section[data-section-id="60ac2acc4bc21d6a986068b1"]{ min-height: clamp(0px, 56.25vw, 100vh) !important; } or section[data-section-id="60ac2acc4bc21d6a986068b1"] { .page-section { min-height: clamp(0px, 56.25vw, 100vh) !important; } } Link to comment
BennyCC Posted July 23, 2021 Author Share Posted July 23, 2021 Sorry nothing is changing when input Link to comment
tuanphan Posted July 25, 2021 Share Posted July 25, 2021 On 7/24/2021 at 2:15 AM, BennyCC said: Sorry nothing is changing when input Add to Design > Custom CSS > Then save & reload the site /* mobile resize image */ @media screen and (max-width:767px) { [data-section-id="60ac2acc4bc21d6a986068b1"] { min-height: unset !important; height: 50vh; } } 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
BennyCC Posted July 26, 2021 Author Share Posted July 26, 2021 @tuanphan This worked. Thank you so much! Link to comment
tuanphan Posted August 2, 2021 Share Posted August 2, 2021 On 7/26/2021 at 11:50 PM, BennyCC said: @tuanphan This worked. Thank you so much! Need help on these? (Checked July 28) Site URL – https://www.okayokayla.com/ 1. (Mobile – Homepage) Button is skewed to the right. https://www.okayokayla.com/ 2. (Mobile – Contact) Remove scroll bar? https://www.okayokayla.com/contact 3. (Tablet – Services) Increase text width? https://www.okayokayla.com/services 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.