Jump to content

Troubleshooting CSS for a scrollable image

Recommended Posts

I'm trying to use the code below to create a scrolling image to show website designs, however once I paste in the image block id and save, the image does not scroll.  It seems only the scroll portion of the code isn't working since making changes to the height, drop shadow, etc. all take effect.  Anyone have any ideas what I might be missing, or suggestions for other ways to achieve this effect?  This is on a 7.1 site using Fluid Engine.  

#PASTE-BLOCK-ID {

height: 500px;

max-width: 80%;

margin:auto;

width: 100%;

overflow-y:scroll;

overflow-x:hidden;

filter: drop-shadow(2px 22px 40px rgba(0,0,0,.3));

@media screen and (max-width:767px) { height:200px; } }

Link to comment
  • Replies 2
  • Views 160
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

17 minutes ago, megdyoga said:

I'm trying to use the code below to create a scrolling image to show website designs, however once I paste in the image block id and save, the image does not scroll.  It seems only the scroll portion of the code isn't working since making changes to the height, drop shadow, etc. all take effect.  Anyone have any ideas what I might be missing, or suggestions for other ways to achieve this effect?  This is on a 7.1 site using Fluid Engine.  

#PASTE-BLOCK-ID {

height: 500px;

max-width: 80%;

margin:auto;

width: 100%;

overflow-y:scroll;

overflow-x:hidden;

filter: drop-shadow(2px 22px 40px rgba(0,0,0,.3));

@media screen and (max-width:767px) { height:200px; } }

Can you share your site with the protected password so we can take a look?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. 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.