Jump to content

How do I move an image section so that it's underneath my transparent header?

Go to solution Solved by Lesum,

Recommended Posts

Hi!

So I currently have an image section right below my transparent header, which I need to move it 45px higher. I can't do this using the standard Squarespace options, could someone tell me what CSS code I can use to make this happen?

I attached an image to further demonstrate what I'm trying to do.

I can't use my image as a background image (which I know would work) because the background image formatting scales differently than the rest of my section images.

Any advice would be very helpful!

1 copy.jpg

Edited by inkfly
Link to comment
  • Solution

@inkfly You can try adding this code snippet under Website > Utilities > Website Tools > Custom CSS

section[data-section-id="64e948be51a29b701d49e46b"] {
  margin-top: -45px !important
}

Replace the section-id on the code with the section-id of your page. 

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

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.