Team:Calgary/Sandbox
From 2010.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> | <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> | ||
- | <style> | + | <!--Color Scheme Blue:4AC6F7, Yellow:F3F778, Green:9ECF3E, White:FFFFFF, Dark Brown:30251A--> |
+ | |||
+ | <style type="text/css"> | ||
#nav { | #nav { | ||
- | + | font-family:courier; | |
- | + | font-style:bold; | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
- | |||
#nav li { | #nav li { | ||
+ | /*floats main list items*/ | ||
margin: 0; | margin: 0; | ||
- | + | float: left; | |
- | + | display: block; | |
- | + | margin-bottom: 50px; | |
- | + | ||
- | + | ||
- | + | border: 1px dashed black; | |
- | + | ||
- | + | ||
- | + | ||
} | } | ||
- | # | + | #nav li.off ul, #nav li.on ul { |
+ | /*put the subnavs underneath main navs and hide them*/ | ||
+ | display: none; | ||
+ | position: absolute; | ||
+ | top: 69px; | ||
+ | height: 15px; | ||
left: 0; | left: 0; | ||
- | + | padding-top: 10px; | |
} | } | ||
- | # | + | #nav li a { |
- | + | /*affects all links on the list*/ | |
- | width: | + | color: #f90 |
+ | font-weight: bold; | ||
+ | display: block; | ||
+ | height: 15px; | ||
+ | width: auto; | ||
+ | padding: 5px; | ||
+ | border: solid 1px #4AC6F7; | ||
} | } | ||
- | # | + | #nav li.on a { |
- | + | /*change border colour for active area*/ | |
- | + | border: 1px solid #9ECF3E; | |
} | } | ||
- | # | + | #nav li.on ul a, #nav li.off ul a { |
- | left: | + | float: left; |
- | width: | + | /*cancel inheritance of border on subnav of active area*/ |
+ | border: 0; | ||
+ | color: #FF0000; | ||
+ | width: auto; | ||
+ | padding-right: 15px; | ||
} | } | ||
- | # | + | #nav li.on ul { |
- | + | /*display active subnav list*/ | |
- | + | display: block; | |
} | } | ||
- | # | + | #nav li.off:hover ul { |
- | + | /*displays other topics when the main menu item is hovered over*/ | |
+ | display: block; | ||
+ | z-index: 10; | ||
+ | |||
} | } | ||
- | # | + | #nav li.off a:hover, #nav li.off:hover a { |
- | background: | + | background: #4AC6F7; |
+ | color: #30251A; | ||
} | } | ||
+ | |||
- | + | </style> | |
- | + | ||
- | + | ||
- | |||
- | |||
- | |||
+ | <body> | ||
- | |||
- | |||
- | |||
+ | <ul id="nav"> | ||
+ | <li class="off"><a href="#">Home</a> | ||
+ | <ul> | ||
+ | <li><a href="#">News</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
- | + | <li class="off"><a href="#">Team</a> | |
+ | <ul> | ||
+ | <li><a href="#">Undergraduates</a></li> | ||
+ | <li><a href="#">Advisors</a></li> | ||
+ | <li><a href="#">About the University</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li class="on"><a href="#">Project</a> | ||
+ | <ul> | ||
+ | <li><a href="#">Project Overview</a></li> | ||
+ | <li><a href="#">Gene Error Detection</a></li> | ||
+ | <li><a href="#">Yeast Assembler</a></li> | ||
+ | <li><a href="#">Modelling</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | |||
- | + | <li class="off"><a href="#">Notebook and Parts</a> | |
+ | <ul> | ||
+ | <li><a href="#">Notebook</a></li> | ||
+ | <li><a href="#">Parts Submitted</a></li> | ||
+ | <li><a href="#">Characterization</a></li> | ||
+ | <li><a href="#">Protocols and Safety</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
- | + | <li class="off"><a href="#">Community</a> | |
- | <li | + | <ul> |
- | + | <li><a href="#">Ethics</a></li> | |
- | + | <li><a href="#">Outreach</a></li> | |
- | + | <li><a href="#">Gallery</a></li> | |
- | <li | + | </ul> |
+ | </li> | ||
+ | |||
+ | <li class="off"><a href="#">Sponsors</a></li> | ||
</ul> | </ul> | ||
- | |||
- | |||
- | |||
</body> | </body> | ||
- | |||
</html> | </html> |
Revision as of 23:16, 7 June 2010