Jump to content

announcement bar overlapping site nav

Recommended Posts

Site URL: https://fife-deer-hznw.squarespace.com/

 

Hi. I have added a fixed header nav, and now I'd like to get the announcement bar to sit just above the header. Right now the announcement bar is overlapping with the header nav.

Here's what is in my CSS... what am I doing wrong?

.Header.Header--top {
  position: fixed;
  top: 0px;
  z-index:1000;
  width:100%;
-webkit-box-shadow: 0px 3px 15px rgba(100, 100, 100, 0.49);
-moz-box-shadow: 0px 3px 15px rgba(100, 100, 100, 0.49);
box-shadow: 0px 3px 15px rgba(100, 100, 100, 0.49);
}
main{
 padding-top: 200px;
}
ajax{
 z-index: 9999;
}
@media only screen and (max-width: 1000px){ main {
 padding-top: 0px;
 }
}
@media screen and (max-width:828px) {
	.sqs-announcement-bar-dropzone p {
    font-size: 15px; 
    letter-spacing: .7px;
    line-height: 180%;
}
}
.sqs-announcement-bar-dropzone {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 10001;
}
.show-on-scroll-wrapper.show {
    display: none;
}

 

Link to comment
  • Replies 3
  • Views 845
  • Created
  • Last Reply

@tuanphan Ah, thanks for the help, but this is quite tricky to manage responsively... I wish I could just keep the top site nav and announcement bar stuck together at all breakpoints but Im seeing some spacing issues on mid-sizes. Is there a way to achieve what Im thinking with css? 

 

Would it be better if the announcement bar were just below the site nav? If so, how would I achieve that?

 

Curses squarespace...

Link to comment

Archived

This topic is now archived and is closed to further replies.

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