hng049 Posted August 28, 2020 Share Posted August 28, 2020 Site URL: http://nikolsons.com.au/ Hi everyone. The hero image on my site isn't resizing properly when viewing on mobile. It gets cut off as you can see. I have coded: @media screen and (max-width:640px) { .homepage .section-background img { width: 100% !important; height: auto !important; } } into the custom CSS. It works great to change the scale of the hero image but then leaves a huge blank area until the next section on the page. How do I go about correcting this? Thanks in advance! 🙂 Link to comment
tuanphan Posted August 28, 2020 Share Posted August 28, 2020 Remove your code & add new code @media screen and (max-width:767px) { .homepage #page section:nth-child(2) { min-height: unset !important; height: 25vh; } } 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
hng049 Posted August 28, 2020 Author Share Posted August 28, 2020 1 hour ago, tuanphan said: Remove your code & add new code @media screen and (max-width:767px) { .homepage #page section:nth-child(2) { min-height: unset !important; height: 25vh; } } Awesome, worked perfectly! Thanks tuanphan! Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.