Free Squarespace Plugin: Full Bleed Image Blocks
Jan 20, 2021
Difficulty level: easy-peasy
Squarespace version: 7.0
Friends don’t let friends use Squarespace banner sections.
Programmed by hulo.dev
Illustration by Mayara Lista
Detraform websites feature a series of bespoke illustrations creating a narrative that complements our copywriting. We use full bleed illustrations to create section transitions and seamless colour block transitions. While Banner backgrounds crop at different screen sizes, our full bleed image block allows for complete design control. This custom CSS code snippet is the foundation of our whole design system.
Step 01
Create a nested page under your index page and upload an image
We like to use separate nested page for each full bleed image block, but you can have other content blocks on this page if you like. Next, upload your photo, graphic or illustration to an image block. Don’t forget to delete the default text block.
Step 02
Custom CSS
In the Custom CSS window add the following code.
/* Detraform's Full Bleed Image Block */ section[id*="full-bleed-image-block"]{ .Index-page-content{ max-width: 100%; padding: 0px; .row{ margin: 0px !important; .sqs-block.sqs-block-image{ padding: 0px !important; .intrinsic { max-width: 100% !important; } } } } }
Step 03
Update the url slug
Open the page settings for the relevant page and update the url slug to “full-bleed-image-block”. Note you can also use a longer name like “/home-2-full-bleed-image-block”. Follow this step to activate the CSS code for any page nested under and index page.
GET THE BEST FREE RESOURCES FROM YOUR FRIENDS AT DETRAFORM HQ
Step 04
Optional CSS to zoom in on mobile
We find our illustrations are a little too small on mobile and feel unbalanced. We use this additional custom CSS to zoom in a little on our full bleed image blocks. Note this will crop the sides. (You’re using a Chrome extension to find your Squarespace block identifiers right?)
@media only screen and (max-width: 640px) { #block-ID, // update the block identifier { width: 135%; // update to zoom in margin-left: auto; margin-right: auto; position: relative; left: -20%; // experiment with percentage to keep your image centered } }