I'm currently in the process of building a website and I'm facing an issue with converting measurements to em's. The script that I have reused from a previous project only seems to work with pixels, despite my efforts to make it compatible with em's.
$(window).scroll(function(){
$("#nav").css("top",Math.max(0,96-$(this).scrollTop()));
});
To see the current behavior in action, check out this demo:
If anyone is able to provide guidance on how to resolve this issue, I would greatly appreciate it!