Template:UIUC Illinois Bioware Background
From 2010.igem.org
(Difference between revisions)
(88 intermediate revisions not shown) | |||
Line 93: | Line 93: | ||
/*Following coding for menu bars found at http://ago.tanfa.co.uk/css/examples/menu/tutorial-h.html*/ | /*Following coding for menu bars found at http://ago.tanfa.co.uk/css/examples/menu/tutorial-h.html*/ | ||
/**************** horizontal menu coding *****************/ | /**************** horizontal menu coding *****************/ | ||
- | # | + | #hmenu { |
- | + | ||
float:left; | float:left; | ||
+ | position:relative; | ||
+ | width: 100%; | ||
} | } | ||
- | # | + | #hmenu ul { |
list-style:none; | list-style:none; | ||
margin:0; | margin:0; | ||
padding:0; | padding:0; | ||
- | + | height:8em; | |
float:left; | float:left; | ||
} | } | ||
- | # | + | #hmenu a.gray, #hmenu a.orange { |
text-align:center; | text-align:center; | ||
- | vertical-align: | + | height:40px; |
+ | vertical-align:middle; | ||
text-transform:uppercase; | text-transform:uppercase; | ||
- | display: | + | display:table-cell; |
+ | vertical-align:middle; | ||
margin:0; | margin:0; | ||
} | } | ||
- | # | + | #hmenu a.orange { |
width:100px; | width:100px; | ||
color:#003C7D; | color:#003C7D; | ||
font-weight:bold; | font-weight:bold; | ||
- | font-size: | + | font-size:10px; |
- | background:url(https://static.igem.org/mediawiki/ | + | background:url(https://static.igem.org/mediawiki/2010/1/11/UIUC-Illinois_Bioware_2010_Horizontal_toolbar_orange_button_big.png); |
text-decoration:none; | text-decoration:none; | ||
} | } | ||
- | # | + | #hmenu a.gray { |
- | width: | + | width:100px; |
color:#000; | color:#000; | ||
font-weight:normal; | font-weight:normal; | ||
- | font-size: | + | font-size:9.5px; |
border-width:1px; | border-width:1px; | ||
border-style:solid; | border-style:solid; | ||
Line 135: | Line 138: | ||
} | } | ||
- | # | + | #hmenu a.orange:hover { |
color:#fff; | color:#fff; | ||
- | background:url(https://static.igem.org/mediawiki/ | + | background:url(https://static.igem.org/mediawiki/2010/e/e1/UIUC-Illinois_Bioware_2010_Horizontal_button_hover_big.png) top left repeat-x #6e8bbf; |
} | } | ||
- | # | + | #hmenu a.gray:hover { |
color:#fff; | color:#fff; | ||
background: #003C7D; | background: #003C7D; | ||
} | } | ||
- | # | + | #hmenu ul li { |
position:relative; | position:relative; | ||
} | } | ||
- | + | #hmenu ul ul ul { | |
- | + | position: absolute; | |
- | + | top: 0; | |
- | + | left: 100%; | |
- | + | ||
- | + | ||
- | + | ||
} | } | ||
- | + | #hmenu ul ul { | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
position: absolute; | position: absolute; | ||
- | + | z-index: 500; | |
- | + | ||
- | + | ||
} | } | ||
- | + | div#hmenu ul ul { | |
- | + | display: none; | |
- | + | ||
} | } | ||
- | + | div#hmenu ul li:hover ul | |
- | + | {display: block;} | |
- | + | ||
- | + | ||
- | } | + | |
- | + | div#hmenu ul ul, | |
- | + | div#hmenu ul li:hover ul ul, | |
- | + | div#hmenu ul ul li:hover ul ul | |
- | + | {display: none;} | |
- | + | ||
- | + | ||
- | + | ||
- | } | + | |
- | + | div#hmenu ul li:hover ul, | |
- | + | div#hmenu ul ul li:hover ul, | |
- | + | div#hmenu ul ul ul li:hover ul | |
- | } | + | {display: block;} |
- | + | body { | |
- | + | behavior: url(csshover.htc); | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
- | + | <!--[if IE]> | |
- | + | <style type="text/css" media="screen"> | |
- | + | body { | |
- | + | behavior: url(csshover.htc); | |
- | + | font-size: 100%; | |
- | + | ||
- | + | ||
- | + | ||
- | font-size: | + | |
- | + | ||
- | + | ||
- | + | ||
} | } | ||
- | # | + | #hmenu ul li {float: left; width: 100%;} |
- | + | #hmenu ul li a {height: 1%;} | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | } | + | |
- | + | ||
- | # | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | height: | + | |
- | + | ||
- | } | + | |
- | # | + | #hmenu a, #hmenu h2 { |
- | + | font: bold 0.7em/1.4em arial, helvetica, sans-serif; | |
} | } | ||
+ | </style> | ||
+ | <![endif]--> | ||
</style> | </style> | ||
</html> | </html> |
Latest revision as of 20:35, 29 June 2010