ChrisBartow Posted April 19, 2020 Share Posted April 19, 2020 (edited) If you make your header transparent, part of the background from the first section appears below it. If you turn off transparency that part of the backgrounds gets hidden underneath the header. It's even explained in the support docs that this is the default behavior. Is there a way to prevent this from happening and have the first section actually start below the header? I feel like if it's not transparent it should start below it. Edited April 19, 2020 by ChrisBartow Creating websites using Squarespace at Design by Donuts 🍩 Link to comment
ChrisBartow Posted April 20, 2020 Author Share Posted April 20, 2020 (edited) I did this for now... it feels really dirty. 🤣 #sections:first-child .section-background { margin-top:60px; } Edited April 20, 2020 by ChrisBartow Fixed code Creating websites using Squarespace at Design by Donuts 🍩 Link to comment
EmilyJoannWilkins Posted March 7, 2022 Share Posted March 7, 2022 Hey @ChrisBartow thank you for posting this. It worked, but it's adding a margin to all of my sections, not just the first one. Did you have that problem? Any ideas? Link to comment
tuanphan Posted March 8, 2022 Share Posted March 8, 2022 13 hours ago, EmilyJoannWilkins said: Hey @ChrisBartow thank you for posting this. It worked, but it's adding a margin to all of my sections, not just the first one. Did you have that problem? Any ideas? What is your site url? We can help easier Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
floren_dina Posted December 13, 2022 Share Posted December 13, 2022 Hello @tuanphan, I have the same problem. I tried this: #sections:first-child .section-background { margin-top:60px; } It worked, but it's adding a margin to all of my sections, not just the first one. How can I change this to just one section? Link to comment
tuanphan Posted December 15, 2022 Share Posted December 15, 2022 On 12/14/2022 at 12:00 AM, floren_dina said: Hello @tuanphan, I have the same problem. I tried this: #sections:first-child .section-background { margin-top:60px; } It worked, but it's adding a margin to all of my sections, not just the first one. How can I change this to just one section? You missing # symbol. Try this article sections:first-child .section-background { margin-top:60px; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
StuartMalone Posted April 25, 2023 Share Posted April 25, 2023 I got a pretty good workaround for this problem from Squarespace's customer support. Rather than using a background image, you can add an image block to the first section, drag its left and right sides to the edges of the page, and set a custom section height of 1 pixel. That essentially re-creates the background image, but the focus point will be calculated correctly. bite47 and MarshHaus 2 Link to comment
Jordy12 Posted August 2 Share Posted August 2 I tried this one and got the same duplicating margin: #sections:first-child .section-background { margin-top:60px; } I tried this one and it does nothing for me: article sections:first-child .section-background { margin-top:60px; } Any ideas? soulfirejournalco.com Link to comment
tuanphan Posted August 3 Share Posted August 3 1 hour ago, Jordy12 said: I tried this one and got the same duplicating margin: #sections:first-child .section-background { margin-top:60px; } I tried this one and it does nothing for me: article sections:first-child .section-background { margin-top:60px; } Any ideas? soulfirejournalco.com Which page are you referring to? It looks fine on homepage. Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) 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