(Adding drop down) |
|||
(44 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
<script> | <script> | ||
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
+ | |||
+ | |||
+ | |||
// When the user scrolls down 20px from the top of the document, slide down the navbar | // When the user scrolls down 20px from the top of the document, slide down the navbar | ||
Line 80: | Line 83: | ||
.nav_text{ | .nav_text{ | ||
font-size: 18px; | font-size: 18px; | ||
− | + | margin-top: 10px; | |
− | margin-top: | + | padding-top: 35px; |
− | + | padding-bottom: 35px; | |
− | padding- | + | |
} | } | ||
− | .nav_icon{ | + | .nav_icon { |
padding-top: 10px; | padding-top: 10px; | ||
padding-bottom: 5px; | padding-bottom: 5px; | ||
− | |||
} | } | ||
+ | |||
Line 99: | Line 101: | ||
width: 100%; /* Full width */ | width: 100%; /* Full width */ | ||
transition: top 0.3s; /* Transition effect when sliding down (and up) */ | transition: top 0.3s; /* Transition effect when sliding down (and up) */ | ||
− | |||
} | } | ||
Line 108: | Line 109: | ||
color: white; | color: white; | ||
text-decoration: none; | text-decoration: none; | ||
+ | width: 20%; | ||
+ | text-align: center; | ||
+ | |||
} | } | ||
Line 120: | Line 124: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Line 630: | Line 579: | ||
<!--- Menu ---> | <!--- Menu ---> | ||
<!-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> | <!-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | <div id="navbar"> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | <a href="https://2018.igem.org/Team:Melbourne" class="nav_item, nav_text">Home</a> | ||
+ | <a href="https://2018.igem.org/Team:Melbourne/Team" class="nav_item, nav_text">Team</a> | ||
+ | <a href="https://igem.org/2018_Judging_Form?team=Melbourne" class="nav_item, nav_icon"> | ||
+ | <img src="http://www.ampc.ms.unimelb.edu.au/srg/index_files/UOM.png" width="115px", height="95px"> | ||
+ | </a> | ||
+ | <a href="https://2018.igem.org/Team:Melbourne/Project" class="nav_item, nav_text">Project</a> | ||
+ | <a href="https://2018.igem.org/Team:Melbourne/Experiment" class="nav_item, nav_text">Experiment</a> | ||
− | |||
Line 662: | Line 603: | ||
<!--- Content of the page ---> | <!--- Content of the page ---> | ||
<!-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> | <!-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 13:15, 17 October 2018