Jump to content

Sticky text on page

Recommended Posts

  • Replies 1
  • Views 521
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Add the following to Design > Custom CSS.

/* sticky pizza dough text */

@media screen and ( min-width : 768px ) {

    [data-section-id="613e5e7581110d39d1d2a4dc"] .sqs-grid-12 > .sqs-row > .sqs-col-6:first-child {
    
      position : sticky;
      top : 200px;

      }

    }

This is for a v7.1 and specific to the poster's need.

This effect is fragile as it depends on the current layout of the page. If you start moving things around then it may break. If it does then you'd need to retarget the CSS selector. Also the effect is not active on mobile.

Let us know how it goes.

Edited by creedon

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

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.