Jump to content

Brine Sticky Header for Blogs

Recommended Posts

I have css for sticky header that is working on all landing pages, page with a banner....but when they don't have a banner (blogs)...the header is jumbled. Can someone help? 

https://www.roccapitalprograms.com/

 

I have these two codes in: 

.Header-inner {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
[data-nc-container="bottom-left"], [data-nc-container="bottom-right"] {
  display: none !important;
}
[data-nc-container="bottom-center"] {
  width: 2000px;
  background: #21395E;
}

.Header--bottom{
  position: fixed !important;
}
 .collection-type-index #new-page-58 {background:#2dc2ca}
 

and

 

.Header {position:fixed; z-index:1000; width:100%;}

.Header--overlay.Header.Header--bottom {
  position: fixed;
  top: 120px;
  z-index:9999;
  background-color: rgba(252, 252, 252, 0.7);
}
.Header.Header--bottom {
  position: fixed;
  top: 50px;
  z-index:9999;
  background-color: rgba(252, 252, 252, 0.7);
}

.Main {padding-top:100px !important;}
.Main.Main--page {padding-top:0px !important;}
.Intro.Intro--has-image {padding-top:100px;}

@media only screen and (max-width: 480px) {.Main {padding-top:0px !important;}}
@media only screen and (max-width: 480px) {.Index {margin-top:0px !important;}}

Link to comment
  • Replies 3
  • Views 474
  • Created
  • Last Reply
15 hours ago, AnastasiaG said:

This only has the bottom navigation sticky. I would like the top navigation too. I tried writing "top" in but it didn't work. 

try

header.Header.Header--top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}
header.Header.Header--bottom.Header--overlay {
    position: fixed;
    top: 135px;
    left: 0;
    right: 0;
    z-index: 999;
}

 

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

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.