Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

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?

sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi! I'm Paul, an independent Squarespace Consultant since 2007 and founder of SF Digital, building the features that Squarespace didn't include. Our mini-extensions allow you to pick dates in any format, show prices in other currencies, take orders without payment or improve your cartI value honesty, integrity, transparency and respect . Links in my posts may refer to SF Digital products or may be affiliate links.

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.

sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi! I'm Paul, an independent Squarespace Consultant since 2007 and founder of SF Digital, building the features that Squarespace didn't include. Our mini-extensions allow you to pick dates in any format, show prices in other currencies, take orders without payment or improve your cartI value honesty, integrity, transparency and respect . Links in my posts may refer to SF Digital products or may be affiliate links.

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