Jump to content

Adjust Gallery Section height on Portfolio Pages to always fit on screen

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

12 minutes ago, timprsn said:

Hello, is there any way to customise my site with CSS so that all of my portfolio pages adjust to the screen size? I want the slideshow galleries to change in height so that it always fits on the current screen size and so that you can't scroll anymore.

Link: https://www.euphoricstudios.com/architecture/architectural-models

Thanks in advance! 🙂

You can try adding to Home > Design > Custom Css

section[data-section-id="63f28e22eb6e251b6f5fb50a"] {
  height: 90vh;

section[data-section-id="63f28e22eb6e251b6f5fb50a"] .content-wrapper{
  height: 100%;

section[data-section-id="63f28e22eb6e251b6f5fb50a"]  .gallery-slideshow ,section[data-section-id="63f28e22eb6e251b6f5fb50a"] .gallery-slideshow-wrapper {
  height: 90vh !important;

section[data-section-id="63f28e22eb6e251b6f5fb50a"] .gallery-slideshow-item img {
  height: 100% !important;
  width: auto !important;
  left: 50% !important;
  transform: translatex(-50%);

Support me by pressing 👍  or marking as solution if this useful for you

Edited by Beyondspace

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio plugin
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
  • 3 weeks later...
On 3/14/2023 at 5:57 PM, LostAndFurious said:


Does anyone knows if there is a way to make this work on every slideshows on the whole website ? 

Or do I have to populate the css for every single galleries ? (I have many...)

Thanks a lot for your answers!

Depend on the case. If you share link to some gallery slideshows on your site, we can check easier

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.