Jump to content

How to had space on top for this Section

Recommended Posts

Posted

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

  • Replies 4
  • Views 736
  • Created
  • Last Reply
Posted

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?

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Posted

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.

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Posted
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. :=)

 

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.