Jump to content

making a map block sticky in an Index page with 2 columns

Go to solution Solved by Beyondspace,

Recommended Posts

Site URL: https://www.ljathenaeum.org/murals/#artists-2

Site URL: https://www.ljathenaeum.org/murals/#artists-2

Hello!

In an index page section I have two columns: a summary block on the left and a map block on the right. I would like to make the map block on this index page section sticky. If possible, I would like it to be sticky for only the length of the summary block in the column to its left. I'm not sure what I'm doing wrong, and any insight would be appreciated. I'm not sure if this is affecting it, but both the map and the summary block are utilizing Lazy Summaries. This would only be for desktop view, as I have the columns stack in tablet and mobile views. Thanks so much!

-alynch

Link to comment
  • Replies 2
  • Views 451
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution
On 8/4/2021 at 4:43 AM, alynch said:

Site URL: https://www.ljathenaeum.org/murals/#artists-2

Site URL: https://www.ljathenaeum.org/murals/#artists-2

Hello!

In an index page section I have two columns: a summary block on the left and a map block on the right. I would like to make the map block on this index page section sticky. If possible, I would like it to be sticky for only the length of the summary block in the column to its left. I'm not sure what I'm doing wrong, and any insight would be appreciated. I'm not sure if this is affecting it, but both the map and the summary block are utilizing Lazy Summaries. This would only be for desktop view, as I have the columns stack in tablet and mobile views. Thanks so much!

-alynch

try

#block-yui_3_17_2_1_1601407006045_59630 +  .row .span-3 {
  position: sticky;
  top: 50px;
}
#artists-2.Index-page {
  overflow: visible;
}

image.thumb.png.09f46bb61851f6f59fbb1b9b13f3ab85.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. 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.