Pat1 Posted July 25, 2020 Share Posted July 25, 2020 Site URL: http://www.taupestudios.com Hi everyone, I have a problem with my navbar on mobile. Whenever I scroll back up on my website, the navbar is "sliding" downwards (I would like it to be fix and not move). I have tried injecting this code as suggested by a friend, but nothing happened... Any suggestions? <script> function removeEventListeners(element, listenerMap) { Object.keys(listenerMap).forEach(function (name) { var listeners = listenerMap[name]; listeners.forEach(function (object) { if (name == 'scroll') { element.removeEventListener(name, object.listener); } }); }); } removeEventListeners(window, getEventListeners(window)); </script> Link to comment
tuanphan Posted July 26, 2020 Share Posted July 26, 2020 Hi. Have you solved it yet? 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
rwp Posted July 26, 2020 Share Posted July 26, 2020 @media screen and (max-width:799px) { .header-announcement-bar-wrapper.shrink { padding: 6vw !important; } } Link to comment
Pat1 Posted July 26, 2020 Author Share Posted July 26, 2020 3 hours ago, rwp said: @media screen and (max-width:799px) { .header-announcement-bar-wrapper.shrink { padding: 6vw !important; } } This worked! Thanks a lot!!! Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.