tI’m developing a responsive website with a side navigation. On side navigation, I tried to keep up the header when user is scrolling down. I used on header-bar, position stiky.
.header-bar {
position: sticky;
position: -webkit-sticky;
position: -moz-sticky;
position: -ms-sticky;
position: -o-sticky;
top: 0px;
padding-top: 2px;
width: 100%;
color: #005654;
z-index: 3;
background-color: white;
}
Sometimes, it’s working, sometimes, no. The header bar buttons become unusable, because header-bar content seems to be, automatically, moved down, when scrolling, even though, header-bar remains displayed on top. Please, see attached img: https://i.stack.imgur.com/cTUUA.jpg