Jump to content

Create full-bleed galleries?

Recommended Posts

Is it possible to make galleries full bleed on templates that don't have full bleed galleries? This has been asked a few times, but no answers.

Thank you for any help.

Link to comment
  • Replies 8
  • Views 18.4k
  • Created
  • Last Reply

I have just figured this out using the following:


 #slideshow {
 min-height: 100%;
 width: 100% !important;
 height: auto;
 position: fixed;
 top: 0;
 left: 0;
}

Link to comment

Hi Chloe could you please let me know where do I need to add this code snippet and how to do it. I don't know any CSS so any help will be much appreciated.Thanks.Diya

Link to comment

Hi Diya, sure. When previewing your site, click the paint brush to go to the style editor. Down the bottom of the style editor, click on the "Custom CSS" button. A new window will pop up, copy and paste the above code into it.

Link to comment

Thanks Chloe, I actually tried but there was no effect to the gallery at all. It just remained the same. I am using Pacific theme, there is not much information available to play around with css here and this ques has been asked several times. So I have got a gallery (slideshow) which I want to display full screen, and I added this CSS you posted to the css editor. Is there anything I am missing? Thanks very much

Link to comment
  • 1 year later...

This is indeed possible on any template regardless of what some users below are saying. Please clarify whether you need a Gallery Block full-bleed, or a Gallery Collection, and I'll provide the code. Gallery Block is my recommended choice and all that's required to make that full bleed is a few lines of CSS, and selecting a few options in the block.

Link to comment
  • 2 months later...

Short answer / The easy way

Get a (commercial) plugin that does everything automatically. Here's a link to the full-bleed gallery blocks plugin for squarespace if you're interested.

Long answer / DIY

Following example only works on one screensize


.sqs-gallery-container{
 width:100vw !important;
 position: relative;
 left: -300px;  /*Change the 300px depending on your template*/
}

Long ago before smartphones our websites only came in one width and we could just use the code above.

The code makes the gallery full-width of the browser instead of using the width of any element on the page. The rest moves the gallery to the start from the left edge of the page.

Unfortunately the code above indeed only works for one screensize so you will need a combination of CSS and quite complex javascript that calculates the margins so it works on every template and regardless of what kind of custom CSS you're using. It must also take care of cross-browser issues and do new calculations if user resizes their browser. I've explained the logic

Freelance Squarespace developer making plugins like Full-Width Blocks, Hover effects for grid gallery and the Darkmode plugin. I know Squarespace inside out and I'm able to solve pretty much any Squarespace code problem.

Get in touch here!

Link to comment
  • 2 years later...

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.