Jump to content

Missing Sections with Sticky Code

Recommended Posts

Hey there!

I'm a CSS newbie, and implemented some code that worked at first but now it won't work at all after I deleted one of the site sections. I'm trying to create a sticky effect where the sections overlap one another and stick to the top while scrolling. However, my CSS is causing only the first and last sections to be shown and the others to be hidden. Any help would be appreciated!

 

/* STICKY SECTION ON HOMEPAGE */
section[data-section-id="659a169e3ccbf36378dd37e5"],
section[data-section-id="65dbdb890d4b603c5997cb58"],
section[data-section-id="65d05d01ecf21f361a7ca870"],
section[data-section-id="65d04e238ae412663b344509"],
section[data-section-id="65d06f13e72f8b0e75c5c854"],
section[data-section-id="65cff1c439fd0c4a7a68409c"] {
position: sticky !important;
top: 0;
}

Link to comment
  • Replies 1
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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.