Jump to content

Sticky section

Go to solution Solved by tuanphan,

Recommended Posts

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

Add to Design > Custom CSS

[data-section-id="63e6637613db3f494e7aa702"] {
    position: sticky;
    position: -webkit-sticky;
    top: 70px;
    z-index: 999999;
}

image.thumb.png.0ae1ee2a067274421e5e81c92e4e08c6.png

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
  • 2 weeks later...
On 3/3/2023 at 7:48 PM, NGM said:

@tuanphanit looks great on mobile and most desktop browser screen sizes. Is there a way to avoid the gaps on tablet and some screen and zoom sizes?

IMG_2669.PNG

IMG_6573.PNG

use this

[data-section-id="63e6637613db3f494e7aa702"] {
    position: sticky;
    position: -webkit-sticky;
    top: 70px;
    z-index: 999999;
}
/* tablet */
@media screen and (max-width:1024px) and (min-width:768px) {
[data-section-id="63fe4c0f075efc4020c6faf4"] {
    top: 82px !important;
}
}

 

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.