Jump to content

Sticky Columns in Fluid Engine?

Recommended Posts

https://beehyve.squarespace.com/payment-policy

I want to add a sticky sidebar (made of various blocks) and apply it to multiple pages.

In 7.1 classic editor, I could make the sidebar blocks collectively sticky by targeting the column within the section, using the code below. Super quick and easy.

Is there a way to do this in fluid engine? Feels a lot cleaner than having to target each block for different top heights, especially as I want to add it to a few pages.

section[data-section-id="...."] .sqs-layout > .sqs-row > .sqs-col-3 {
	position: sticky!important;
	position: -webkit-sticky!important;
	top: 140px;
    z-index: 99999;
    }

Thanks all!

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Do Sidebar as first block, then use this code

section[data-section-id="...."] .fluid-engine>.fe-block:first-child {
	position: sticky!important;
	position: -webkit-sticky!important;
	top: 140px;
    z-index: 99999;
    }

First block means block which you added first in that section. 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.