MaddiCreativeStudio Posted May 31, 2023 Share Posted May 31, 2023 Hi! a client of mine is looking to add this banner above the menu. I found CSS that works well. The only downfall is that now there is a space under the nav bar that I cannot reduce. This space is always the same size as the navigation bar. It's as if the white space is where my actual navigation bar should be, but the coding I am using visibly places the bar right above the allotted space. How can I reduce this white space without reducing the size of the navigation bar? Worth mentioning, the space has nothing to do with the section below. When the codes are removed, the space is gone. Here is the coding I have: /* Add sticky header */ header#header { position: sticky !important; top: 0px; } /* Add a banner */ body.homepage div#siteWrapper:before { content: ""; background-image: url(https://static1.squarespace.com/static/6470f3f123aef000b21163ab/t/64768ec0b19c39685933aaef/1685491392647/no+logo%404x.png); background-size: cover; background-repeat: no-repeat; background-position: bottom; display: block; width: 100%; height: 320px; } Link to comment
MaddiCreativeStudio Posted May 31, 2023 Author Share Posted May 31, 2023 Hi! I figured out my own answer. For those of you who had the same question, I added the following: /* Removing space between nav and section */ section[data-section-id="6470f3f923aef000b2116654"] { margin-top: -70px; } I grabbed the block ID from the google chrome extension "Squarespace ID finder" tuanphan 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