Jump to content

Overlap a button between two sections on a page 7.1

Go to solution Solved by tuanphan,

Recommended Posts

I'm trying to get a button to overlap two sections on a page in Squarespace 7.1. Is it possible? I'm trying to use margins and z-index css to achieve this, but it's cutting off the button (see screenshot). I've also attached a screenshot of what I'm trying to achieve.

This is the current code I'm working with:

 

///OVERLAP SECTION///

//section 1//
section[data-section-id="644fb51f62ae2860d54fa1b3"]
{z-index: 1;
margin-bottom:0px;}


//button//
#block-yui_3_17_2_1_1682941763085_30867
{z-index:3;}

 

//section 2//

section[data-section-id="644fb669e22fd95fbe24eee6"]
{
  margin-top: -30px;
  z-index:2;
}

 

This is the site: jesskasriel.com (pw: inprogress)

 

Thank you in advance if you can help with this ❤️

Screenshot 2023-05-01 at 20.04.12.png

Screenshot 2023-05-01 at 20.04.28.png

Link to comment
  • Replies 6
  • Views 588
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

Use this new CSS

.fe-block-yui_3_17_2_1_1682941763085_30867 {
    position: absolute;
    bottom: -31px;
    grid-area: none !important;
    left: 50%;
    transform: translateX(-50%);
}
.fe-block-yui_3_17_2_1_1682941763085_30867 a.sqs-button-element--primary.sqs-block-button-element {
    padding: 1.2em 1.9em !important;
    display: block !important;
}
.fe-block-yui_3_17_2_1_1682941763085_30867 div {
    height: auto !important;
    display: block !important;
}
[data-section-id="644fb51f62ae2860d54fa1b3"] {
    z-index: 123456789 !important;;
}

image.thumb.png.bdf276963de5a7af134f1217d3dd662a.png

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 weeks later...

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.