Jump to content

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

Recommended Posts

  • Replies 3
  • Views 415
  • 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

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
  • 3 weeks later...
On 3/14/2023 at 5:57 PM, LostAndFurious said:

Hi, 

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

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.