How to fix a header on scroll
You need some JS to do scroll events. The best way to do this is to set a new CSS class for the fixed position that will get assigned to the relevant div when scrolling goes past a certain point. HTML <div class=”sticky”></div> CSS .fixed { position: fixed; top:0; left:0; width: 100%; } jQuery $(window).scroll(function(){ … Read more