Jump to content

How can I set up a scrollable list on my page?

Recommended Posts

Hey folks, I'd like to make a change to my site and need your help.

I want to add a scrollable list to my page. For this, I'd like to upload a PNG where only the top part is shown, and then users can scroll down, similar to scrolling through a website.

I found the following code for this:
 

// Scrollable Webpage
#BLOCK-ID {
  height: 350px;
  max-width: 80%;
  margin:auto;
  width: 100%;
  overflow-y:scroll;
  overflow-x:hidden;
  filter: drop-shadow(10px 10px 10px rgba(0,0,0,.3));
  
  @media screen and (max-width:767px) {
   height:200px;
  }
}

//Customize the scrollbar

::-webkit-scrollbar {
    width: 3px; /* Scrollbar Thickness */
    height:15px;
}
::-webkit-scrollbar-thumb {
    background: #22514A; 
}
::-webkit-scrollbar-track {
    background: #ffffff; /* Background Color */
}


Unfortunately, it doesn't work as it did in the tutorial. Can someone help me with this? How can I achieve a scrollable list like this? Appreciate your assistance!

Site: https://maltemartenmethod.squarespace.com/module-1
Pword: maltemartenmethod2023

Turorial Example:
Bildschirmfoto2024-01-07um22_41_50.thumb.png.c2d1ec98c43e85751b1f715d89eb5d95.png

Link to comment
  • Replies 3
  • Views 1.4k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

5 hours ago, Nomis said:

Yes @tuanphan, I have already done that. Something is happening, but the result doesn't look as it should. See the attached screenshot or here on the page: https://maltemartenmethod.squarespace.com/module-1

Can you help me with this?

Bildschirmfoto2024-01-10um21_52_07.thumb.png.99502c00978b2655ce86707825072e09.png

You try Classic Section for current section and test code again

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

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.