Guest Posted July 1, 2014 Share Posted July 1, 2014 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
Guest Posted July 1, 2014 Share Posted July 1, 2014 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
diyakhanphotography Posted July 4, 2014 Share Posted July 4, 2014 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
Guest Posted July 5, 2014 Share Posted July 5, 2014 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
diyakhanphotography Posted July 5, 2014 Share Posted July 5, 2014 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
XaQQhcQtEhfdzDvpDdQb Posted May 8, 2016 Share Posted May 8, 2016 That's not accurate. Pure CSS will indeed do it. All you have to do is span the Gallery Block to browser width. The CSS required is no more than 5 lines. Link to comment
XaQQhcQtEhfdzDvpDdQb Posted May 8, 2016 Share Posted May 8, 2016 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
codeandtonic Posted August 1, 2016 Share Posted August 1, 2016 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
siweisong Posted March 26, 2019 Share Posted March 26, 2019 What if I only want to apply this to one of the galleries I have on the page? Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.