Jump to content

Floating Image between Footer Sections

Recommended Posts

Site URL: https://iris-paddlefish-tpfn.squarespace.com/

Hi, 

I'm trying to float an image between my top and middle footer sections.  I've added the following code but the image remains behind the middle footer section.  There is also a small bit of code that I've added to remove a white space (margin) that was on top of the Instagram section.  Not sure if that has something to do with it but I've included it below as well.  Any help would be much appreciated.  Thanks

div#block-yui_3_17_2_1_1605754328283_4716:after {
   content: "";
   display: block;
   background-image: url('https://static1.squarespace.com/static/5fb20bb998d0ea21e2c279cb/t/5fb5ec7b493ec905fa2f017c/1605758075338/Namaste.png');
   background-size: contain;
   width: 250px;
   height: 160px;
   margin: 0 auto;
   margin-top: 0px;
  margin-bottom: -100px;
  background-repeat: no-repeat;
  overflow:visible!important;
}
 

//Remove space above Instagram Block//
#block-yui_3_17_2_1_1605754328283_17909 {
  margin-top: -80px!important;
}

Capture.PNG

Link to comment
  • Replies 1
  • Views 522
  • Created
  • Last Reply

Nevermind, I answered my own question.  If anyone else is looking for the answer, here is the code.

.Footer-middle {
  position: relative;
}
.Footer-middle::before {
  background-image: url(https://static1.squarespace.com/static/5fb20bb998d0ea21e2c279cb/t/5fb5fb8fc0d0602287d82e83/1605761935298/Namaste+%283%29.png);
  background-size: contain;
  content: '';
  height: 100px;
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: 250px;
  background-repeat: no-repeat;
  z-index: 999;
}

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.