I am trying to fix a side nav when a user scrolls to a certain point. I am currently using:
if(jQuery('#fix-me').offset().top <= jQuery(window).scrollTop()){
var position = 38;
}
This works well only I need it to kick in 38px from the top and not 0px
Im just not sure of the correct way to achieve this?!