Jump to content

hotapplecider

Circle Member
  • Posts

    1
  • Joined

  • Last visited

Posts posted by hotapplecider

  1. Hello,

    I'm trying to get a fixed, full-width image onto my landing page. I added the CSS for the background image, but I can't make the page section's background transparent to show the image. Any help would be greatly appreciated!

    cloverkate.com

    This is the code I currently have injected in the page header:

    <style>
      .header, #footer-sections {display:none!important}
    /* homepage background */
      #page .page-section {
    background: transparent!important
    }

    #page .page-section .section-background {
    background: transparent !important;
    }
      
    body::before {
    background-image:url(https://static1.squarespace.com/static/61cf79abb29d4211ca17caac/t/6419e5b80345d51569c4466b/1679418808939/zhijian-dai-LeJsiKbPElY-unsplash.jpg);
      background-position: center;
      background-repeat: no-repeat;
      background-size: cover;
      content: '';
      height: 100%;
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;

      }

    </style>

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