Jump to content

Top split section hidden behind header.

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://foodisterie.squarespace.com/la-foodisterie-1

Hello Circle ! 

I hope you are all doing well!

I would need some help on this page, in fact I managed to make a split section with the two first sections. However the section goes under the header on some screen the first lines of text disappear under it and I can't find a way to place the sections just under the header and not at the top of the screen.

I thought of adding a padding at the top, but on each size of screen the padding need is different so I'm out of options!

https://foodisterie.squarespace.com/la-foodisterie-1 password: Maureen

Here is the CSS I used :

#collection-608e75d5e343ac7a934afa70{ .page-section{height:100vh!important} .page-section:nth-child(2) {margin-top:-100vh!important;}
 .page-section:nth-child(2) , .page-section:nth-child(2) .section-background{background-color:#fff!important}
  
[data-section-id="608e75d5e343ac7a934afa72"]{
  width:50%;
}}
[data-section-id="608e75d5e343ac7a934afa74"]{
  width:50%;
  margin-left:50vw;
}

If anyone has an idea to change that, I would appreciate!

Thanks for your help,

Maiixu

Screenshot 2021-05-02 at 11.57.36.png

Link to comment
  • Solution

Add to Design > Custom CSS. You can adjust number 500

/* La Foodisterie */
@media screen and (min-width:992px) {
body#collection-608e75d5e343ac7a934afa70 article section:nth-child(-n+2) {
    margin-top: 500px;
}}

 

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

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.