Difference between revisions of "Team:Uppsala/test5"

Line 23: Line 23:
  
 
#toc {
 
#toc {
     top: 0px;
+
     top: 310px;
 
     float: right;
 
     float: right;
 
    
 
    
 
     right: 0px;
 
     right: 0px;
 
     /* top: 25px; */
 
     /* top: 25px; */
     position: float;
+
     position: fixed;
 
     display: inline-block;
 
     display: inline-block;
 
     border: none;
 
     border: none;
Line 367: Line 367:
  
 
$(window).scroll(function(){
 
$(window).scroll(function(){
     $("#toc").css("top",Math.max(0,250-$(this).scrollTop()));
+
    var myFixedPositionInit = 310;
 +
     $("#toc").css("top",Math.max(0, myFixedPositionInit - $(this).scrollTop()));
  
  

Revision as of 21:45, 15 October 2018




Uppsala iGEM 2018