sticky header css
nav {
position: sticky; top: 0;
}
sticky header css
nav {
position: sticky; top: 0;
}
how to scroll fixed position
.fixed-content {
top: 0;
bottom:0;
position:fixed;
overflow-y:scroll;
overflow-x:hidden;
}
sticky header on scroll
*****************HTML****************
<div class="sticky"></div>
*****************CSS****************
.fixed {
position: fixed;
top:0; left:0;
width: 100%; }
******************jQuery***************
$(window).scroll(function(){
var sticky = $('.sticky'),
scroll = $(window).scrollTop();
if (scroll >= 100) sticky.addClass('fixed');
else sticky.removeClass('fixed');
});
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us