Jump to content

horizontal overflow scroll for my homepage gallery.

Recommended Posts

Posted

Site URL: https://www.rerubbed.com

I found this code, but am struggling to get it to work at all. Can anyone give me some advice?
<style>
.sqs-gallery {
overflow: scroll;
}
body {
background-image: none;
}
.sqs-gallery-design-strip-slide {
padding-left: 3px;
padding-right: 3px;
}
</style>
<script type="text/javascript">
$( window ).load(function() {
w = $(".sqs-wrapper").width();
$(".sqs-wrapper").width(w/2);
})
</script>
**for reference I was adding it to the pages code header injection
  • Replies 1
  • Views 470
  • Created
  • Last Reply
Posted

You missing jQuery library, try new code

<style>
.sqs-gallery {
overflow: scroll;
}
body {
background-image: none;
}
.sqs-gallery-design-strip-slide {
padding-left: 3px;
padding-right: 3px;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script type="text/javascript">
$( window ).load(function() {
w = $(".sqs-wrapper").width();
$(".sqs-wrapper").width(w/2);
})
</script>

 

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!)

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.