Jump to content

Fixed button does not go across the whole site

Recommended Posts

Hi Everyone,

I have put in a code that has a button in a fixed position for mobile on the bottom right. Unfortunately wherever i put it it only stays in that section and doesn't move across to the rest when scrolling. Is there any way to fix this? Below is the code I have used. If I am missing any info that may be required to answer the questions let me know! Thanks

 

 

#block-yui_3_17_2_1_1677022135457_73383{
  position: fixed;
  z-index: 9999;
  bottom: 10px;
  right: 60px;
  width: 15%;
  height: 10%;
  
}

@media only screen and (min-width: 660px){
#block-yui_3_17_2_1_1677022135457_73383{
    display: none;
  }
}

Link to comment

Typically for a fixed position element, if you want it on every page, then putting it in the last section of the footer is best, if you want it on just one page, I would suggest placing it in the last section of your page, then it should be visible across the entire scroll.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

  Did I help? Buy me a coffee?

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

Link to comment
On 2/26/2023 at 4:51 PM, Johnac said:

Hi there,

The button is on the footer and it is only on mobile. I would like it to be on the full screen when scrolling on every screen.

Don't remove any code in your current code

Add this to Design > Custom CSS

footer.sections section, footer.sections {
    z-index: 9999999 !important;
    position: relative;
}

 

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.