verobranding Posted October 31, 2019 Share Posted October 31, 2019 Hey everyone! I've done a little bit of CSS but couldn't figure out why my announcement bar is overlapping my nav. And, on scroll it disappears. Can anyone help? I'm using Bedford family (Hayden template) https://verobranding.com/ Link to comment
tuanphan Posted October 31, 2019 Share Posted October 31, 2019 @verobranding You used position: fixed; for header, so we will overlap. Solution 1. Set top: 38px; for header (38px is announcement bar height). However, when you click "X" the announcement, it will leave a 38px space above. The next solution is to disable "X" with CSS span.sqs-announcement-bar-close { display: none; } Solution 2. Remove position: fixed; at header, and use position: sticky You code should be #header { background-color: #3b4f40 !important; position: -webkit-sticky !important; position: sticky !important; } 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
verobranding Posted January 23, 2020 Author Share Posted January 23, 2020 Thank you @tuanphan The first solution doesn't fully work because on scroll the 38px margin stays on scroll. And, the second didn't do anything. Is there another solution? Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.