Jump to content

Help with mobile placement for floating/overlapping section

Recommended Posts

Hello! on multiple pages on my site i have overlapping floating sections - how can i do so my section doesn`t overlap on phone version - instead it under the header instead of overlapping 

what can i add to this code to make that change?

section[data-section-id="5f0494567cd525609fff6f78"].page-section {
   padding-bottom: ~"calc(@{slope} + 12vw)"!important;
     @media screen and (max-width: 640px) {
    padding-bottom: ~"calc(@{slope} + 180px + 4vw)"!important;
    }
}

Thanks in advanced 🙂

Link to comment
  • Replies 2
  • Views 327
  • Created
  • Last Reply
@media screen and (min-width:768px) {
section[data-section-id="5f0494567cd525609fff6f78"].page-section {
   padding-bottom: ~"calc(@{slope} + 12vw)"!important;
     @media screen and (max-width: 640px) {
    padding-bottom: ~"calc(@{slope} + 180px + 4vw)"!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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.