Jump to content

Recommended Posts

Hola!

I'm looking to see if there is a way I can make my background photo stationary while the elements of the page move. Currently, if I add additional sections, the photo repeats. Just want the background to stay still while the type, buttons, etc. move when you scroll.

Here's the url of the photo as well.

https://images.squarespace-cdn.com/content/6215c82439b1f42e2775bc8a/8f89e78b-d915-4fc6-be89-ba6c7d99bdfc/DSC06504.jpg?content-type=image%2Fjpeg

Any help is greatly appreciated!

Thank you!

Edited by Raphe
Link to comment
  • Replies 7
  • Views 2.3k
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...
On 3/12/2024 at 4:03 PM, Raphe said:

Yes, here’s the link! You can see what I mean on the home page mainly.

https://www.raphevaldez.com

Try this code to Website > Website Tools > Custom CSS

[data-section-id="65c73c8b6a821c56259741a3"] .section-background-content {
    position: fixed !important;
    top: 0;
}
[data-section-id="65c73c8b6a821c56259741a3"] ~ section, footer.sections, footer.sections section {
    position: relative !important;
    z-index: 9999 !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
  • 3 months later...
On 3/14/2024 at 12:56 AM, tuanphan said:

Try this code to Website > Website Tools > Custom CSS

[data-section-id="65c73c8b6a821c56259741a3"] .section-background-content {
    position: fixed !important;
    top: 0;
}
[data-section-id="65c73c8b6a821c56259741a3"] ~ section, footer.sections, footer.sections section {
    position: relative !important;
    z-index: 9999 !important;
}

 

Hi, I'm here looking for the answer to this too. I've put in your code, put in the id of the block but my image still moves when I scroll. The only thing that happened is my divider disappeared. Here is my link, I tried to lock in place the image of the woman looking away doing yoga.

 https://www.imageoptimist.com/movement

Link to comment
On 6/20/2024 at 1:30 PM, imageoptimist said:

Hi, I'm here looking for the answer to this too. I've put in your code, put in the id of the block but my image still moves when I scroll. The only thing that happened is my divider disappeared. Here is my link, I tried to lock in place the image of the woman looking away doing yoga.

 https://www.imageoptimist.com/movement

This is Section ID, not Block ID. You try checking it again.

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
  • 4 weeks later...
On 6/22/2024 at 1:24 AM, tuanphan said:

This is Section ID, not Block ID. You try checking it again.

I have the image as a section but it isn't stationary. Has anyone been able to get this to work? Can you share an example and how you did it? 

Thanks!

Suzanne

Link to comment
  • 3 weeks later...

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.