Jump to content

How to had space on top for this Section

Go to solution Solved by paul2009,

Recommended Posts

Site URL: https://davidecapucci.com/

Hey there. Someone can help me. 

I generate new section on top with only one pic. I want the pic starting after the menu area with link. I cannot found the way the top of this pic/section starting after that and not from the Top of the page. I tied different CSS code but nothing change.

I also add another empty section on top of this pic/section but  i cannot reduce as i want. 

Check the pic below.

Thank you. 

Schermata 2021-06-30 alle 14.48.38.jpg

Link to comment

On Squarespace 7.1, the page sits 'behind' the header which is why part of the image is hidden. Do you want to change this behaviour on just this page, or others pages too?

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment
  • Solution

You can add some CSS to push the page down a little so that it isn't hidden behind the solid header, but the header and its contents are dynamically sized so you'll need to take care to ensure that it doesn't leave a gap at different 'viewports' (screen widths).

Here's a simplified example that you can add to Design > Custom CSS:

.homepage #siteWrapper {
  margin-top:77px;
}

As you adjust your browser width from really small (mobile size) to really large (a 5K display) you'll see the issue.

There are various ways to account for this. For example, instead of the code above, you can use the following example instead, which adjusts the margin for different viewports using 'media queries':

@media only screen and (min-width: 800px) {
  .homepage #siteWrapper {
    margin-top:66px;
  }
}
@media only screen and (min-width: 1280px) {
  .homepage #siteWrapper {
    margin-top:75px;
  }
}

I hope this helps.

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment
45 minutes ago, paul2009 said:

You can add some CSS to push the page down a little so that it isn't hidden behind the solid header, but the header and its contents are dynamically sized so you'll need to take care to ensure that it doesn't leave a gap at different 'viewports' (screen widths).

Here's a simplified example that you can add to Design > Custom CSS:

.homepage #siteWrapper {
  margin-top:77px;
}

As you adjust your browser width from really small (mobile size) to really large (a 5K display) you'll see the issue.

There are various ways to account for this. For example, instead of the code above, you can use the following example instead, which adjusts the margin for different viewports using 'media queries':

@media only screen and (min-width: 800px) {
  .homepage #siteWrapper {
    margin-top:66px;
  }
}
@media only screen and (min-width: 1280px) {
  .homepage #siteWrapper {
    margin-top:75px;
  }
}

I hope this helps.

Working perfectly with the first

Thank you so much really appreciate. :=)

 

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.