Jump to content

Need help reducing the height of the Gallery section

Go to solution Solved by abibacon,

Recommended Posts

I've currently got a gallery reel block which has CSS customisation to play a scrolling logo animation. It works absolutely fine however I want to reduce the size of it. I still want it full page width but I wanted to reduce the height of the section. I the current Squarespace default height on the smallest it can go which is 30. I have also used this code:

 

/* gallery reel */
[data-section-id="660d3cf73f391f3650b12e81"]
.gallery-reel {
    padding-top: -50px !important;
    padding-bottom: -50px !important;
}
 

which does help but not a great deal. 

Screenshot 2024-04-05 at 09.24.24.png

Link to comment
  • Replies 6
  • Views 1.7k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

On 4/5/2024 at 7:34 PM, JoshPickCC said:

thank you very much! Do you know if theres any way of making all the logos smaller within the section?

You can try this CSS code to reload the page

[data-section-id="660d3cf73f391f3650b12e81"] .gallery-reel {
    height: 20vh !important;
}

 

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
  • 3 months later...
Hi, this code
.gallery-section {
  height: 20vh !important;
})
worked for adjusting the height on the web version of the site. How can I adjust the code to change the height on my mobile site? Thanks!
Link to comment
On 7/30/2024 at 11:18 AM, aglass said:
Hi, this code
.gallery-section {
  height: 20vh !important;
})
worked for adjusting the height on the web version of the site. How can I adjust the code to change the height on my mobile site? Thanks!

Use this code for mobile

@media screen and (max-width:767px) {
.gallery-section {
  height: 30vh !important;
}}

 

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.