Difference between revisions of "Team:ETH Zurich"

Line 33: Line 33:
 
     $('html, body').animate({ scrollTop: $($(this).attr('href')).offset().top}, 500, 'linear');
 
     $('html, body').animate({ scrollTop: $($(this).attr('href')).offset().top}, 500, 'linear');
 
   });
 
   });
 +
});
 +
</script>
 +
 +
<script>
 +
$("nav").find("a").click(function(e) {
 +
    e.preventDefault();
 +
    var section = $(this).attr("href");
 +
    $("html, body").animate({
 +
        scrollTop: $(section).offset().top
 +
    });
 
});
 
});
 
</script>
 
</script>
Line 46: Line 56:
 
div.title {
 
div.title {
 
     padding: 100px;
 
     padding: 100px;
 +
}
 +
 +
 +
div.content {
 +
    color: #626262ff
 +
    font-family: 'Avenir', 'Open Sans', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif!important;
 +
    text-align: justify;
 +
    font-size: 15px;
 +
    margin-left: 120px;
 +
    margin-right: 120px;
 
}
 
}
  
Line 65: Line 85:
  
  
<div class="scroll">
+
<nav>
 
<center>  
 
<center>  
     <a href="#main"><span></span></a>
+
     <a href="#content">
 
   <img src="https://static.igem.org/mediawiki/2017/1/14/T--ETH_Zurich--Scroll.png" width="70px">
 
   <img src="https://static.igem.org/mediawiki/2017/1/14/T--ETH_Zurich--Scroll.png" width="70px">
 +
  </a>
 
</center>
 
</center>
</div>
+
</nav>
  
<section id="main">
+
<div class="content">
 
njjnjknjk
 
njjnjknjk
  
</section>
+
</div>
  
 
</body>
 
</body>

Revision as of 13:12, 7 October 2017



njjnjknjk