AnastasiaG Posted November 1, 2019 Share Posted November 1, 2019 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
tuanphan Posted November 1, 2019 Share Posted November 1, 2019 You want sticky Navigation when scrolling? If yes, you can use this code header.Header.Header--bottom.Header--overlay { position: -webkit-sticky; position: sticky; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
AnastasiaG Posted November 5, 2019 Author Share Posted November 5, 2019 This only has the bottom navigation sticky. I would like the top navigation too. I tried writing "top" in but it didn't work. Link to comment
tuanphan Posted November 6, 2019 Share Posted November 6, 2019 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 How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.