Jump to content

Sticky Column With Overflow for Blog Posts

Recommended Posts

  • Replies 6
  • Views 304
  • Created
  • Last Reply

Top Posters In This Topic

14 hours ago, tuanphan said:

Try adding to Design > Custom CSS

@media screen and (min-width:901px) {
div#item-6456b25b81a7df1f2bce5560 .span-5 {
    position: sticky;
    top: 0;
    position: -webkit-sticky;
    z-index: 9999;
}
}

 

Looks amazing, @tuanphan  any way to make the code applicable to all blog posts, not just the one? Thank you!!

Link to comment

Each page has a different structure, try this, but I'm not sure it will work with all posts

@media screen and (min-width:901px) {
.blog-item-content .sqs-layout.columns-12 .span-5 {
    position: sticky;
    top: 0;
    position: -webkit-sticky;
    z-index: 9999;
}
}

 

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
6 hours ago, tuanphan said:

Each page has a different structure, try this, but I'm not sure it will work with all posts

@media screen and (min-width:901px) {
.blog-item-content .sqs-layout.columns-12 .span-5 {
    position: sticky;
    top: 0;
    position: -webkit-sticky;
    z-index: 9999;
}
}

 

Seems to work for all posts @tuanphan !! Although the left column sticks halfway and continues after additional scrolling. Any way to make scrolling seamless to stick at the end of the content only?

Link to comment
16 hours ago, tuanphan said:

Hi,

I don't know this.

No problem, tinkering with it. I'm thinking the solution isn't sticky now... Trying to get both columns to scroll together until aligned at baseline, as seen on THIS SITE for example. Inspecting their code shows a fixed position column with variable top...

Thank you for your help @tuanphan !

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.