davidecapucci Posted June 30, 2021 Share Posted June 30, 2021 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. Link to comment
paul2009 Posted June 30, 2021 Share Posted June 30, 2021 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? davidecapucci 1 About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
davidecapucci Posted June 30, 2021 Author Share Posted June 30, 2021 (edited) Thank you. Yes i want to change that only in this page if is possible.. Edited June 30, 2021 by davidecapucci Link to comment
Solution paul2009 Posted June 30, 2021 Solution Share Posted June 30, 2021 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. davidecapucci 1 About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
davidecapucci Posted June 30, 2021 Author Share Posted June 30, 2021 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. :=) paul2009 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment