daybreakwest Posted January 12, 2022 Share Posted January 12, 2022 (edited) Site URL: https://www.cattlebranddesign.com/ I have made a landing page and a contact form. On the landing page ( https://www.cattlebranddesign.com/ ) I have added this code to shrink the banner image to fit a mobile screen @media screen and (max-width:767px) { .homepage section:first-child { height: 30vh !important; min-height: unset !important; } } The footer is fine when you go into my contact form. ( https://www.cattlebranddesign.com/contact ) But it seems as though this code has messed up the footer on my landing page. It seems as though this is what has messed up my footer. on this page ( https://www.cattlebranddesign.com/ ) Any help appreciated Edited January 12, 2022 by daybreakwest new info Link to comment
daybreakwest Posted January 12, 2022 Author Share Posted January 12, 2022 I figured it out. I had the height of the section set as" height: 30vh !important; " I had to make it larger and it was all good, I swapped it to " height: 80vh !important; " Link to comment
tuanphan Posted January 14, 2022 Share Posted January 14, 2022 section:first-child = first section on Main Content + first section on Footer You should change it to @media screen and (max-width:767px) { .homepage article section:first-child { height: 30vh !important; min-height: unset !important; } } (this code will target first section on Homepage Main Content Only) 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
Create an account or sign in to comment
You need to be a member in order to leave a comment