Yashnaverma (Talk | contribs) |
Yashnaverma (Talk | contribs) |
||
Line 3: | Line 3: | ||
<style> | <style> | ||
− | |||
.dropdown { | .dropdown { | ||
− | + | position: relative; | |
− | + | display: inline-block; | |
} | } | ||
− | .dropdown- | + | |
− | + | .dropdown-content { | |
+ | display: none; | ||
position: absolute; | position: absolute; | ||
background-color: #f9f9f9; | background-color: #f9f9f9; | ||
min-width: 160px; | min-width: 160px; | ||
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); | box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); | ||
− | |||
z-index: 1; | z-index: 1; | ||
} | } | ||
− | + | .dropdown-content a { | |
− | + | color: black; | |
− | + | padding: 12px 16px; | |
− | + | text-decoration: none; | |
− | + | display: block; | |
− | + | } | |
− | + | .dropdown-content a:hover {background-color: #f1f1f1} | |
− | + | ||
− | + | .dropdown:hover .dropdown-content { | |
− | + | display: block; | |
− | + | ||
− | } | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
− | |||
− | |||
</style> | </style> | ||
Line 59: | Line 42: | ||
<li class="active"><a href="https://2018.igem.org/Team:William_and_Mary">Home</a></li> | <li class="active"><a href="https://2018.igem.org/Team:William_and_Mary">Home</a></li> | ||
<li class="dropdown"><a id = "wnm-top-nav" class="nav-link dropdown-toggle" data-toggle="dropdown" href="#">Project<span class="caret"></span></a> | <li class="dropdown"><a id = "wnm-top-nav" class="nav-link dropdown-toggle" data-toggle="dropdown" href="#">Project<span class="caret"></span></a> | ||
− | <ul style="top:70px" class="dropdown- | + | <ul style="top:70px" class="dropdown-content"> |
<li><a href="#">Freezing Cells</a></li> | <li><a href="#">Freezing Cells</a></li> | ||
<li><a href="#">3G Assembly</a></li> | <li><a href="#">3G Assembly</a></li> |
Revision as of 15:15, 5 July 2018