Jump to content

Need help fixing floating section on mobile version

Recommended Posts

Site URL: http://www.peachycleanatl.com

I need to add a line of custom CSS to fix the way this floating section on my Squarespace site is displaying on mobile. (see below. also attached a screenshot of how it displays correctly on desktop). Here is the code I used to create the floating section. Please help!

//Floating Section
@siteWidth: 1400px;
@siteMargin: 8vw;
section[data-section-id="60e6fc7b6d268043414e0d0a"] {
  padding-bottom: 100px;
  & + section {
    position: absolute!important;
    min-height: 0!important;
    z-index: 30;
    left: 50%;
    max-width: @siteWidth;
    width: ~"calc(100% - @{siteMargin} * 2)";
 transform: translate(-50%,-50%);
  }
  & + section + section {
    padding-top: 100px;
  }
}
//Floating Section Customization //
section[data-section-id="60e704cc7f66c71f361a3e3c"] {
  box-shadow: 10px 10px 15px rgba(0,0,0,0.25);
}

 

IMG_2342.PNG

Screen Shot 2021-08-19 at 11.00.21 AM.png

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

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Add to Design > Custom CSS

/* Mobile float section */
@media screen and (max-width:767px) {
/* padding under 2 buttons */
div#page-section-60e6fc7b6d268043414e0d0a {
    padding-bottom: 50px;
}
/* padding under float section */
div#page-section-60bbbf0b53bf365e4b7f4319 {
    padding-top: 120px;
}
}

 

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.