Jump to content

Floating / Overlapping Elements

Recommended Posts

Hi everyone, I'm trying to figure out the bet way to bring the attached design to life and I'm lost as to where to start. I've circled in red the section in question. I love how the boxes overlap the two sections, so I would like to keep that. I can do without the icons. Any help to point me in the right direction would be greatly appreciated. 

Screenshot 2024-03-14 at 5.41.11 PM.png

Edited by perry.alexis
Link to comment
  • perry.alexis changed the title to Overlapping Elements
  • perry.alexis changed the title to Floating / Overlapping Elements

I would suggest that the easiest way to set this up is like this; have a background image and the section set to fill, use a shape block (yellow outlined) stretched to the left right and bottom of the section, use text blocks with background enabled for the info (blue outlined), and overlap the icons as image blocks (if you want those):

image.png.f736c7591c7faa7de4a5bcd267d918f2.png

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

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
  • 6 months later...

@Ziggy @tuanphan

I have the same question for my homepage: https://evamauermann.com (Password: Help) in the Blog Section.

 

Right now it looks like this:

Blognow.thumb.png.e59cebe0ab7b87c1aedd86688d9e5591.png

 

 

But I would like it to look like here:

blogwish.thumb.png.fe4715704fd66b364443701682a2be2f.png

 

 

blogwish2.thumb.png.ac86f3d397161e1d4f48dc9c9dedcbde.png

So move the coloured shape block + text block upwards, that they overlap my slideshow header photo.

I tried the "overlaping technique" I used on other sections, with adding a new section in between but I couldn't figure out a way because of the photo (because it's not a solid background).

Thanks!

 

Edited by Journalfloral
Link to comment
On 9/29/2024 at 12:50 PM, tuanphan said:

You can use this to Website Tools > Custom CSS

.fe-block-yui_3_17_2_1_1727349873408_1406, .fe-block-yui_3_17_2_1_1727299826731_21805 {
    position: relative;
    top: -100px;
}

 

This worked great on Desktop, thanks! 🙂

But on mobile it doesn't look right 😞

 

And is there further the possibility to reduce the spacing between the coloured shape and the following Blog articles (please see photo below)?

blogwish3.thumb.png.ec4e5e47c760ec93289535222256a290.png

 

Edited by Journalfloral
Link to comment
On 10/1/2024 at 5:14 AM, Journalfloral said:

This worked great on Desktop, thanks! 🙂

But on mobile it doesn't look right 😞

 

And is there further the possibility to reduce the spacing between the coloured shape and the following Blog articles (please see photo below)?

blogwish3.thumb.png.ec4e5e47c760ec93289535222256a290.png

 

What should it look like on mobile?

With space, you can use this CSS code

@media screen and (min-width:768px) {
section[data-section-id="66e3fc126a641b3e5796ac63"] {
    min-height: unset !important;
    height: 10vh;
}
}

 

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
On 10/3/2024 at 12:20 PM, tuanphan said:

What should it look like on mobile?

 

 

Right now it looks on mobile like this:

Mobile1.thumb.png.46ea421b23bdaea0019134ccdfea55a9.png

 

 

I would like to have it look like this:

Mobile2.thumb.png.b4f9bffe576873e823e02012625e9118.png

 

 

But when I go into edit mode, the coloured shape block disappears?

Mobile3.thumb.png.f1298de2a1dc22b52195985b2b737e15.png

 

So I can't just push the text blocks higher above the shape block.

 

 

 

Edited by Journalfloral
Link to comment

You can remove the code & move it up on mobile, with desktop I will give code

Because when use code to move up on mobile, it will create a space (initial space occupied by the elements), to remove this space will need to adjust the code of all elements below, it will need a lot of code

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
13 hours ago, tuanphan said:

You can remove the code & move it up on mobile, with desktop I will give code

Because when use code to move up on mobile, it will create a space (initial space occupied by the elements), to remove this space will need to adjust the code of all elements below, it will need a lot of code

 

So I removed the last part of the code and now I only use this:
/* Blog Übersicht Überlappen Header */
.fe-block-yui_3_17_2_1_1727349873408_1406, .fe-block-yui_3_17_2_1_1727299826731_21805 {
    position: relative;
    top: -100px;}
 

On mobile I was now able to move the text block above the shape block 🙂

 

And for desktop I now need another code, to close again the gap between the coloured shape block and the following blog posts (as we already discussed above) 🙂

 

Link to comment

Can you change current section to Classic Section? I tried but can't solve this 100%

@media screen and (min-width:768px) {
.fe-66e3fc12e0077b041d3d9301 {
    --row-height-scaling-factor: 0;
grid-template-rows: repeat(2,minmax(calc(~"var(--container-width) * var(--row-height-scaling-factor)"), auto)) !important;
}

.fe-block.fe-block-yui_3_17_2_1_1727349873408_1406 {
    grid-row-end: 16;
}

section[data-section-id="66e3fc126a641b3e5796ac63"] {
    min-height: unset !important;
    height: 25vh;
}}

 

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
3 hours ago, tuanphan said:

Can you change current section to Classic Section? I tried but can't solve this 100%

@media screen and (min-width:768px) {
.fe-66e3fc12e0077b041d3d9301 {
    --row-height-scaling-factor: 0;
grid-template-rows: repeat(2,minmax(calc(~"var(--container-width) * var(--row-height-scaling-factor)"), auto)) !important;
}

.fe-block.fe-block-yui_3_17_2_1_1727349873408_1406 {
    grid-row-end: 16;
}

section[data-section-id="66e3fc126a641b3e5796ac63"] {
    min-height: unset !important;
    height: 25vh;
}}

 

 

What do you mean with "change current section to Classic Section"?  🤔

 

 

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.