Team:DTU-Denmark/kristian test header

From 2014.igem.org

(Difference between revisions)
Line 37: Line 37:
         $(window).scroll(function() {
         $(window).scroll(function() {
             if ($(this).scrollTop() > 100) {
             if ($(this).scrollTop() > 100) {
-
                 $("#nav").css("position","fixed").css("top","0");
+
                 $("#nav").css("position","fixed").css("top","50px");
             } else {
             } else {
                 $("#nav").css("position","absolute").css("bottom","0");
                 $("#nav").css("position","absolute").css("bottom","0");

Revision as of 15:45, 13 September 2014