davidmatos Posted June 21, 2022 Share Posted June 21, 2022 This piece of code (used to correct home/main page video ratio on mobile view) is triggering a very annoying footer overlapping in most (exception being home/main precisely) pages on mobile view: /* mobile video ratio correction */ @media screen and (max-width:767px) { #page section:first-child iframe#player { width: 100% !important; left: 0 !important; height: auto !important; } #page section:first-child { min-height: unset !important; height: 70vh !important; } } This seems to be a somewhat recurrent issue but I wasn’t able to find a solution. Any help would be much appreciated. Many thanks Dave Link to comment
tuanphan Posted June 23, 2022 Share Posted June 23, 2022 First section appears on both Main Content & Footer. You need to edit class name to this /* mobile video ratio correction */ @media screen and (max-width:767px) { article section:first-child iframe#player { width: 100% !important; left: 0 !important; height: auto !important; } article section:first-child { min-height: unset !important; height: 70vh !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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment