There is a sticky menu that follows the header block (header has a fixed height). The problem is that the content going right away, at the start of the scroll, is partially hidden under the menu itself. How can this be overcome? I tried adding both padding and margin, all to no avail. Menu jquery code:
$(window).scroll(function(){ if ($(window).scrollTop()>$("header").height()-$("my-nav").height()){ $(".my-nav").addClass("stickly"); } else { $(".my-nav").removeClass("stickly"); } });
Here is the project