Jump to content

how to limit the single image container in gallery up to 1200px wide?

Recommended Posts

Hi!

I would like to ask for some support with custom code for my gallery. I would like to limit the singl eimage presentation up to 1200px not more. FOr now, the single image is scaled to the browser size... I don't want to presented the image bigger than 1200px wide (I use horizontal style pictures).

I will appreciate any support here. I am working with this template from SQSp: https://wells-demo.squarespace.com/

 

Edited by iczek
typos
Link to comment
  • iczek changed the title to how to limit the single image container in gallery up to 1200px wide?
  • Replies 6
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

You need to be more specific and share your website so we can actually look at it and help you.

Especially as none of the images in the demo are more than 1200px wide.

Work With Me 🖥️💻📱

Please remember to tag me so that I get a notification and respond to your help requests.

If my answers have helped you, please drop a like and mark my answer as best to help other users find solutions quickly.

You can also thank me or make requests by buying me a coffee . (Caffeine fuels me to take more requests)

For Squarespace Tips & Tricks, visit @squareskills (Youtube 📺 Tutorials)

For Premium and FREE plugins, visit Squareskills (Plugin Store) 🧩

Some links may be affiliate/referral links.

Link to comment
On 12/6/2023 at 12:43 AM, iczek said:

Ok, I am newbie wirth Squarespace so I don;t know how to make website public to show you the issue. Should I upgrade and pay to see the website without login? 

NO need to upgrade, you can follow this

 

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

You mean images on homepage? You can add this code to Website Tools (under Not Linked) > Custom CSS

/* Limit image width */
.collection-type-gallery.enable-gallery-thumbnails #slideshow img {
    max-width: 1200px !important;
    margin: 0 auto;
}

 

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.