Jump to content

Footer overlapping on Mobile view 7.1

Recommended Posts

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

Screenshot 2022-06-21 at 17.29.27.png

Link to comment
  • Replies 1
  • Views 366
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.