Jump to content

Overlap images and sections with 7.1

Go to solution Solved by tuanphan,

Recommended Posts

  • Solution
/* remove section bottom padding */
[data-section-id="5ddd4eb4522cc3312c5226a6"] .content-wrapper {
    padding-bottom: 0 !important;
}
/* remove overflow hidden */
div#block-yui_3_17_2_1_1584647118148_10720 .image-block-wrapper {
    overflow: visible !important;
}
/* overlap image */
div#block-yui_3_17_2_1_1584647118148_10720 img {
    width: auto !important;
    bottom: -20% !important;
    top: unset !important;
    right: 0;
    z-index: 999;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 4 weeks later...

Okay I must be going crazy now. That code no longer works. It's now stuck behind again. Is there a change I broke or something else I have to do?

Here's the code I'm using (I re-added the image so the block-yui changed):

/* remove section bottom padding */
[data-section-id="5ddd4eb4522cc3312c5226a6"] .content-wrapper {
    padding-bottom: 0 !important;
}
/* remove overflow hidden */
div#block-yui_3_17_2_1_1587085802684_25650 .image-block-wrapper {
    overflow: visible !important;
}
/* overlap image */
div#block-yui_3_17_2_1_1587085802684_25650 img {
    width: auto !important;
    bottom: -20% !important;
    top: unset !important;
    right: 0;
    z-index: 999;
}

 

Link to comment
  • 2 months later...

I used the following to get an overlap feature for an image card block in one section to bleed over the edge into the section below it.  You just need to change the #block-yui IDs in each.  Mine was acting a little funny on smaller widths so I added the screen width settings too.  I had this particular section at the "custom" height of 10 (the smallest it'll go), so you may have to tweak the top: 10vh number in the first set of CSS if you have a taller section.

@media only screen and (min-width: 800px){div#block-yui_3_17_2_1_1593439438559_11782 {
    width: auto !important;
    bottom: -20% !important;
    top: 10vh !important;
    right: 0;
    z-index: 999;
  }}

@media only screen and (max-width: 799px){div#block-yui_3_17_2_1_1593439438559_11782 {
    width: auto !important;
    z-index: 999;
padding-top: 20px !important;
  }
.sqs-block-image .design-layout-poster .image-card {
    width: 87%;
  padding-top: 30px !important;
}
}

 

Screen Shot 2020-06-29 at 1.25.33 PM.png

Edited by 44degreesnorth
attached image
Link to comment
  • 3 months later...
On 10/1/2020 at 2:44 AM, olivianearle said:

Can anyone provide an update for this because neither code works. 😞

Can you share your site url & simple mockup? We can check easier.

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 3 weeks later...

Hello,

I am having difficulty with this, too. I am looking to use a singular image that spans the height (and width) of my entire home page instead of having the image be cut off at the end of the section that it is in.

https://www.takebackyourcareerpodcast.com/

password: boots135

Example: https://www.thefridayhabit.com/ (see background image is spanning all sections, so it appears).

Thank you

Link to comment
  • 2 months later...

Hi @gregbarbosa,

If you are still looking for a solution for this.  SquareKicker recently release a new Squarespace Extension which is a no-code tool that gives you the ability to customise your site without having to write a single line of code (including the control to overlap images) using a visual builder.

VIDEO: Squarespace Layout: Overlapping Blocks Between Two Sections
https://squarekicker.com/letsmakethis/squarespace-layout-overlapping-blocks-between-two-sections 

Overlapping Blocks Between Two Sections.png

SquareKickerHi, I'm Nick, CEO & Co-Founder at squarekicker.com.  Take your Squarespace sites to the next level with SquareKicker's No-Code Design & Animation Extension. Break free from templates & complex code and start building unique websites that you are proud to show your clients without ever having to write a single line of code. 

Tutorials  ●  News  ●  Inspiration  ●  Features  ●  FAQS

 

Link to comment
  • 1 year later...
On 3/20/2022 at 10:28 AM, MMEbyKiandraTrickett said:

I've done this for a 7.0 website and the mobile view is absolutely terrible. Any solutions anyone knows of? 

@tuanphan?

https://allpilatestas.squarespace.com/

password: hello

Which section are you referring to?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 11 months later...
10 hours ago, freshlypressed said:

Hi does anyone know if it's possible to overlap the image of my hero banner over the section below? 

@pentool makes a great point, adjusting the background to include the stripe at the bottom works well.

An alternative is to use a rectangular shape block, stretch it to the left and right edges and use the fill screen option on the section to allow you to join the shape to the bottom of the section.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
🔌
 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 Did I help? Buy me a coffee?

Link to comment

Hi @freshlypressed, you can use SquareKicker for this. Great when you want to keep your background banner images or videos with background image effects etc and then overlap a block over another section.  See instructions below.

In Fluid Engine:

1.) Make the Section Content align to the bottom with Fluid Engine first so you do not have to move it past the Section padding or remove the Section "Fill Screen" to remove the section padding. 

2.) Next use the SquareKicker Section Tool to adjust the "Layer Level" to 1. You will need this to adjust the z-index of the section to make sure the image does not get cropped when you move it down.

3.) Lastly move the image block to the bottom of the section and use the SquareKicker position tool to move the image block down. SquareKicker > Position > Vertical.  Note: this is automatically set to 0 on mobile devices so you don't need to set a device specific code, but you can micro manage this per devices with SquareKicker.

Once you are done, if you don't need to make anymore changes you can cancel SquareKicker and all your saved custom code changes will save forever without an on going subscription. 

Here is a video showing the Position tool in use.

image.thumb.png.6d321c1004bba307640e34bd6872e201.png

SquareKickerHi, I'm Nick, CEO & Co-Founder at squarekicker.com.  Take your Squarespace sites to the next level with SquareKicker's No-Code Design & Animation Extension. Break free from templates & complex code and start building unique websites that you are proud to show your clients without ever having to write a single line of code. 

Tutorials  ●  News  ●  Inspiration  ●  Features  ●  FAQS

 

Link to comment
  • 1 month later...
On 5/4/2023 at 1:48 PM, elizablake said:

Hello @tuanphan!

I have tried everything in this thread with a similar issue. I want the fruit to overlap sections like the below image, but they just go behind the section no matter what I try. From my research it seems the z-index is what usually makes elements come to the front, but nothing is working. Please help!

image.thumb.png.75b0bd6d84846b6e5ff9675a7aa5e280.png

Please see my site below:

https://violet-impala-rgjr.squarespace.com/

password: celebrate101

Don't remove any code in your current code

Add this to Design > Custom CSS

[data-section-id="6453213e2f1c110bfd8d7c4b"] {
    z-index: 9 !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.