|
|
Line 5: |
Line 5: |
| | | |
| the-content{ | | the-content{ |
− | margin-top: 5%;
| + | position: fixed; |
| + | top: 30px; |
| } | | } |
| h3{ | | h3{ |
| margin-left: auto; | | margin-left: auto; |
| margin-right: auto; | | margin-right: auto; |
− | padding-bottom: 3%;
| |
| text-align: center; | | text-align: center; |
| } | | } |
Revision as of 19:01, 16 October 2016
iGEM NYUAD Wiki
$(document).ready(function(){
$(window).scroll(function() {
if ($(document).scrollTop() > 50) {
// alert('you');
$('nav').addClass('shrink');
$('#nyuad-logo').css("height","44px");
} else {
$('nav').removeClass('shrink');
$('#nyuad-logo').css("height","66px");
}
});
});
Integrated Human Practices