Team:St Andrews/defaulttemplate
From 2010.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
<html> | <html> | ||
- | <link href='http://fonts.googleapis.com/css?family= | + | <link href='http://fonts.googleapis.com/css?family=Vollkorn' rel='stylesheet' type='text/css'> |
<style> | <style> | ||
Line 9: | Line 9: | ||
color: #FFFFFF; | color: #FFFFFF; | ||
} | } | ||
+ | |||
body | body | ||
{ | { | ||
- | background: #00539B | + | background: #00539B; |
- | font-family: ' | + | font-family: 'Vollkorn', arial, serif; |
- | + | ||
} | } | ||
Line 22: | Line 22: | ||
{ | { | ||
position:relative; | position:relative; | ||
+ | z-index:6; | ||
width:160px; | width:160px; | ||
} | } | ||
Line 63: | Line 64: | ||
} | } | ||
- | + | #banner | |
{ | { | ||
padding:2px; | padding:2px; | ||
Line 83: | Line 84: | ||
height: 25px; | height: 25px; | ||
position: absolute; | position: absolute; | ||
- | padding: 0px | + | padding: 0px 5px !important; padding: 5px 5px 5px 5px; |
} | } | ||
Line 95: | Line 96: | ||
- | |||
- | |||
- | |||
- | . | + | |
- | + | ul.dropdown li, | |
- | + | ul.dropdown, | |
- | + | ul.dropdown ul { | |
+ | padding: 0px 50px; | ||
+ | list-style: none; | ||
+ | margin: 0; | ||
+ | padding: 0; | ||
} | } | ||
- | |||
- | |||
- | . | + | ul.dropdown li { |
- | + | float: middle; | |
- | + | vertical-align: middle; | |
- | + | ||
- | + | ||
} | } | ||
- | . | + | ul.dropdown li.hover, |
- | + | ul.dropdown li:hover { | |
+ | position: relative; | ||
+ | cursor: default; | ||
+ | } | ||
- | + | ul.dropdown ul { | |
- | { | + | margin:10; |
- | + | padding:10; | |
- | + | visibility: hidden; | |
+ | position: absolute; | ||
+ | |||
} | } | ||
- | + | ul.dropdown ul li { | |
- | . | + | top: 100%; |
- | { | + | left: 0; |
- | + | width: 100%; | |
- | + | float: none; | |
} | } | ||
- | + | ul.dropdown li:hover > ul { | |
- | { | + | visibility: visible; |
- | + | ||
} | } | ||
- | + | ul.dropdown li.rtl ul { | |
- | + | top: 100%; | |
- | + | right: 0; | |
- | + | left: auto; | |
- | + | } | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | . | + | ul.dropdown { |
- | { | + | float:right; |
- | + | position:relative; | |
+ | right:50%; | ||
} | } | ||
- | . | + | ul.dropdown li { |
- | + | padding: 2px 4px; | |
- | + | background-color: #FFFFFF; | |
- | + | color: 000000; | |
- | + | float:left; | |
- | + | position:relative; | |
- | + | left:50%; | |
- | + | } | |
- | + | ||
- | + | ||
- | + | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | + | ul.dropdown ul { | |
+ | color: #00539B; | ||
+ | font-weight: normal; | ||
+ | right: auto; | ||
+ | } | ||
- | + | ul.dropdown ul li { | |
- | + | background-color: #FFFFFF; | |
- | + | left: auto; | |
- | + | } | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | } | + | |
- | + | ul.dropdown ul li:hover { | |
+ | color: #FFFFFF; | ||
+ | background-color: #00539B; | ||
+ | } | ||
+ | |||
+ | |||
- | |||
- | + | ||
- | + | ||
- | + | #navbar | |
- | + | { | |
- | + | background-color: red; | |
- | + | } | |
- | + | ||
- | + | ||
- | + | ||
+ | </style> | ||
+ | <body> | ||
- | <div id=" | + | <div id="banner"> |
- | <img width= | + | <img width=950 height=400 title="St Mary's Quad, St Andrews" alt="St Mary's Quad, St Andrews" src="https://static.igem.org/mediawiki/2010/d/da/Stmarys.jpg"/> |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
</div> | </div> | ||
- | |||
+ | <div id="navbar"> | ||
+ | <ul class="dropdown dropdown-horizontal"> | ||
- | |||
+ | <li><a href="https://2010.igem.org/Team:St_Andrews">Home</a></li> | ||
+ | |||
+ | <li><a href="https://2010.igem.org/Team:St_Andrews/project/modelling">Modelling</a> | ||
+ | <ul> | ||
+ | <li> ITEM1</li> | ||
+ | <li> ITEM2</li> | ||
+ | </ul> | ||
- | + | <li><a href="https://2010.igem.org/Team:St_Andrews/project/laboratory">Laboratory</a> | |
- | + | <ul> | |
- | + | <li> ITEM1</li> | |
- | + | <li> ITEM2</li> | |
- | <li><a href="https://2010.igem.org/Team:St_Andrews/project/laboratory">Laboratory</a | + | </ul> |
- | + | ||
- | + | <li><a href="https://2010.igem.org/Team:St_Andrews/project/ethics">Human Practices</a> | |
- | + | <ul> | |
- | + | <li> ITEM1</li> | |
- | + | <li> ITEM2</li> | |
- | <li><a href="https://2010.igem.org/Team:St_Andrews/project/ethics">Human Practices</a> < | + | </ul> |
- | + | ||
- | + | </li> | |
</ul> | </ul> | ||
- | |||
</div> | </div> | ||
+ | </br> | ||
</body> | </body> | ||
</html> | </html> |
Revision as of 20:26, 27 October 2010