Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
AKTX

announcement bar overlapping site nav

Question

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;
}

 

Share this post


Link to post

3 answers to this question

Recommended Posts

  • 0

@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...

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...