Team:Cornell/sandbox/general
From 2013.igem.org
(Difference between revisions)
(2 intermediate revisions not shown) | |||
Line 6: | Line 6: | ||
//change navbar position when scrolling | //change navbar position when scrolling | ||
if (window.pageYOffset < 160) { | if (window.pageYOffset < 160) { | ||
- | $(". | + | $(".nav").css('position', 'static'); |
} | } | ||
else { | else { | ||
- | $(". | + | $(".nav").css('position', 'fixed'); |
} | } | ||
$(window).scroll(function() { | $(window).scroll(function() { | ||
if (window.pageYOffset < 160) { | if (window.pageYOffset < 160) { | ||
- | $(". | + | $(".nav").css('position', 'static'); |
} | } | ||
else { | else { | ||
- | $(". | + | $(".nav").css('position', 'fixed'); |
} | } | ||
}); | }); | ||
Line 24: | Line 24: | ||
</head> | </head> | ||
<body> | <body> | ||
- | <div class="title" style="height: 160px;"> | + | <div class="title" style="display: block; height: 160px; width: 100%;"> |
</div> | </div> | ||
- | <div class=" | + | <div class="nav" style="z-index: 20; font-weight: 600;"> |
<a><div class="head"> Project </div></a> | <a><div class="head"> Project </div></a> | ||
<a><div class="head"> Outreach </div></a> | <a><div class="head"> Outreach </div></a> | ||
<div class="head"> | <div class="head"> | ||
- | <img style="width: 450px; padding: 0 30px | + | <img style="width: 450px; padding: 0 30px;" src="https://static.igem.org/mediawiki/2013/f/fa/Cornell_iGEM_logo.png"> |
</div> | </div> | ||
<a><div class="head"> Notebook</div></a> | <a><div class="head"> Notebook</div></a> |
Latest revision as of 19:32, 19 August 2014