Guest Posted May 27, 2020 Share Posted May 27, 2020 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
tuanphan Posted May 27, 2020 Share Posted May 27, 2020 Add to Home > Design > Custom CSS header.Header.Header--top { top: 70px; } 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
Guest Posted June 1, 2020 Share Posted June 1, 2020 @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
Guest Posted June 1, 2020 Share Posted June 1, 2020 Nevermind! I think I fixed everything. Thanks for the help again anyways. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.