Jump to content

How to move up large image on homepage to fit snuggly behind header

Go to solution Solved by tuanphan,

Recommended Posts

Hi all,

My blog is www.millietothemoon.com. I'm working on inputting a large image on the homepage of my site, but running into an issue.  If I input the image *under* my header, I can't figure out how to get the header to be transparent in such a way that overlays that image. I tried to set the header as dynamic, and that didn't work.

Does anyone know how to fix this? The closest I got was adding the image WITHIN the header, but that messed with my navigation on mobile and I don't want the image on every page. 

Appreciate the help!

Link to comment
  • Replies 2
  • Views 239
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution

Just add this code to Design > Custom CSS

/* Homepage transparent header */
body.homepage section:first-child {
    padding-top: 0px !important;
}

body.homepage header#header {
    background-color: Transparent !important;
}

 

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

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.