abbytaylor Posted May 6, 2020 Share Posted May 6, 2020 Hi there! I've put a Sticky header into a site built on York, and it works perfectly on the index pages, but on the Contact, About and Press pages, there's a big gap above the Nav Bar. I want the coloured Nav bar to remain glued to the top of the screen as it is on the Index Page. What's wrong with this code? It's bits I've grabbed offline and put into the custom CSS section. I don't know how to code so it's total guesswork and any help would be hugely appreciated. I've attached a screengrab of the index, where the navbar sits at the very top of the screen how I want, and the about, which has the horrid gap. #header { position:fixed; z-index: 1; background-color: #402C30; padding-top: 13px; width: 100%; padding-bottom: 13px; margin-top: 0px; } @media only screen and (min-width: 760px) { .site-page { padding-top: 40px !important; } } Link to comment
tuanphan Posted May 7, 2020 Share Posted May 7, 2020 Can you share link? 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.