Team:UEA-JIC Norwich/Experiment

From 2011.igem.org

(Difference between revisions)
 
(20 intermediate revisions not shown)
Line 1: Line 1:
-
<ul class="topnav">
+
<html>
-
    <li><a href="#">Home</a></li> 
+
 
-
    <li> 
+
<style type="text/css">
-
        <a href="#">Tutorials</a> 
+
#globalWrapper {background-color: #153E7E;}
-
        <ul class="subnav">
+
#top-section { height: 14px; margin: 0px; margin-left: auto; margin-right: auto; margin-bottom: 0 !important;}
-
            <li><a href="#">Sub Nav Link</a></li> 
+
#p-logo { height: 0px; margin: -1px; margin-left: auto; margin-right: auto; margin-bottom: 0 !important;}
-
            <li><a href="#">Sub Nav Link</a></li> 
+
#menubar.left-menu { background-color:#606060; width:965px; float:left; border: none;}
-
        </ul> 
+
#menubar.left-menu a {color:white;}
-
    </li> 
+
#search-controls {display:none; }
-
    <li> 
+
#contentgrid {padding-left:25px;padding-right:25px;width:925px;border: 1px solid #529bc7background-color: white; margin-left:-6px; margin-bottom:-5px; }
-
        <a href="#">Resources</a> 
+
.firstHeading{width: 0px; height: 0px; margin-bottom: 0px; display: none; position: relative; top:0; left:0; margin:0;}
-
        <ul class="subnav"> 
+
 
-
            <li><a href="#">Sub Nav Link</a></li> 
+
#headerimage {width:965px; margin-bottom:10px}
-
            <li><a href="#">Sub Nav Link</a></li> 
+
#headerimage img {max-width:965px;}
-
        </ul> 
+
#headermenu {text-align:center; width:965px; height:22px;border-bottom:1px solid #529bc7;}
-
    </li> 
+
#headermenu ul {display:inline-block; zoom:1;}
-
    <li><a href="#">About Us</a></li> 
+
#headermenu ul.top {margin-left:0;}
-
    <li><a href="#">Advertise</a></li> 
+
#headermenu ul {text-align:left; margin:0; padding:0; list-style:none; white-space:nowrap;}  
-
    <li><a href="#">Submit</a></li> 
+
#headermenu li {margin:0; padding:0;}
-
    <li><a href="#">Contact Us</a></li> 
+
#headermenu a {display:block; font:normal 11px verdana,arial,sans-serif;color:#82CAFA; line-height:22px; text-decoration:none; padding:0 20px;}
-
</ul> 
+
#headermenu li:hover > ul {visibility:visible;}
-
ul.topnav {
+
#headermenu a:hover ul,
-
list-style: none;
+
#headermenu a:hover a:hover ul,
-
padding: 0 20px;
+
#headermenu a:hover a:hover a:hover ul {visibility:visible;}
-
margin: 0;
+
#headermenu a:hover ul ul,
-
float: left;
+
#headermenu a:hover a:hover ul ul {visibility:hidden;}
-
width: 920px;
+
#headermenu ul.top {margin:0 auto;}
-
background: #222;
+
#headermenu li.top-li {float:left; position:relative; margin-right:1px;}
-
font-size: 1.2em;
+
#headermenu a.top-a {float:left; padding:0 0 0 20px; background:url(https://static.igem.org/mediawiki/2011/2/2f/Screen_shot_2011-06-23_at_14.05.42.png) no-repeat left top;}  
-
background: url(topnav_bg.gif) repeat-x;
+
#headermenu a.top-a b {float:left; padding:0 20px 0 0; background:url(https://static.igem.org/mediawiki/2011/2/22/Screen_shot_2011-06-23_at_14.01.36.png) no-repeat right top; cursor:pointer; cursor:hand;}
-
}
+
#headermenu a.down b {float:left; padding:0 20px 0 0; background:url(https://static.igem.org/mediawiki/2011/2/22/Screen_shot_2011-06-23_at_14.01.36.png) no-repeat right top; cursor:pointer;}
-
ul.topnav li {
+
#headermenu a.top-a:hover {white-space:nowrap; background:url(https://static.igem.org/mediawiki/2011/2/2f/Screen_shot_2011-06-23_at_14.05.42.png) no-repeat left -30px;}
-
float: left;
+
#headermenu a.top-a:hover b,
-
margin: 0;
+
#headermenu a.top-a:focus b,
-
padding: 0 15px 0 0;
+
#headermenu a.top-a:active b {color:#FDD017; background:url(https://static.igem.org/mediawiki/2011/3/33/Tab_new_1.png) no-repeat right -30px; cursor:pointer;}
-
position: relative; /*--Declare X and Y axis base for sub navigation--*/
+
#headermenu a.down:hover b,
-
}
+
#headermenu a.down:focus b,
-
ul.topnav li a{
+
#headermenu a.down:active b {color:#000; background:url(https://static.igem.org/mediawiki/2011/3/33/Tab_new_1.png) no-repeat right -30px; cursor:pointer;}
-
padding: 10px 5px;
+
#headermenu li.top-li:hover > a {white-space:nowrap; background:url(https://static.igem.org/mediawiki/2011/d/d7/0.5_Tab.png) no-repeat left -30px;}
-
color: #fff;
+
#headermenu li.top-li:hover > a b {color:#FDD017; background:url(https://static.igem.org/mediawiki/2011/3/33/Tab_new_1.png) no-repeat right -30px;}
-
display: block;
+
#headermenu li.top-li:hover > a.down b {color:#FDD017;  background:url(https://static.igem.org/mediawiki/2011/3/33/Tab_new_1.png) no-repeat right -30px;}
-
text-decoration: none;
+
#headermenu li ul {display:block; position:absolute; visibility:hidden; background:#529bc7; padding:1px 1px 8px 1px; left:0;}
-
float: left;
+
#headermenu li li {border-bottom:1px solid #529bc7;}
-
}
+
#headermenu li li a {background:#fff;}
-
ul.topnav li a:hover{
+
#headermenu li li a:hover {background:#153E7E;}
-
background: url(topnav_hover.gif) no-repeat center top;
+
#headermenu li li:hover > a {background:#153e7e;}
-
}
+
#headermenu ul.drop-down {top:22px; opacity:1.0;}
-
ul.topnav li span { /*--Drop down trigger styles--*/
+
#headermenu li li ul {left:100%; margin-top:-23px; margin-left:-5px;}
-
width: 17px;
+
#headermenu table {text-align:left; position:absolute;top:0;left:0;border-collapse:collapse;}
-
height: 35px;
+
#headermenu table ul li a {padding-left:0; padd\ing-left:20px;}
-
float: left;
+
#headermenu table table {top:auto; left:100%; margin-left:-1px; padding:0; margin:0;}
-
background: url(subnav_btn.gif) no-repeat center top;
+
#headermenu table table ul {margin-top:-4px; marg\in-top:-7px;}
-
}
+
</style>
-
ul.topnav li span.subhover {background-position: center bottom; cursor: pointer;} /*--Hover effect for trigger--*/
+
<div id="wrap">
-
ul.topnav li ul.subnav {
+
<div id="headermenu">
-
list-style: none;
+
<ul class="top">
-
position: absolute; /*--Important - Keeps subnav from affecting main navigation flow--*/
+
<li class="top-li"><a class="top-a" href="https://2011.igem.org/Team:UEA-JIC_Norwich"><b>Home</b></a>
-
left: 0; top: 35px;
+
</li>
-
background: #333;
+
       
-
margin: 0; padding: 0;
+
<li class="top-li"><a class="top-a" href="https://2011.igem.org/Team:UEA-JIC_Norwich/Team"><b>Team</b></a>
-
display: none;
+
-
float: left;
+
</li>
-
width: 170px;
+
          
-
border: 1px solid #111;
+
<li class="top-li"><a class="top-a down" href=""><b>Aims</b>
-
}
+
<ul class="drop-down">
-
ul.topnav li ul.subnav li{
+
<li><a href="https://2011.igem.org/Team:UEA-JIC_Norwich/Project">Overview</a></li>
-
margin: 0; padding: 0;
+
<li><a href="https://2011.igem.org/Team:UEA-JIC_Norwich/Nittygritty">The 'Nitty Gritty'</a></li>
-
border-top: 1px solid #252525; /*--Create bevel effect--*/
+
-
border-bottom: 1px solid #444; /*--Create bevel effect--*/
+
</ul>
-
clear: both;
+
</li>
-
width: 170px;
+
          
-
}
+
<li class="top-li"><a class="top-a down" href=""><b>Registry Parts</b>
-
html ul.topnav li ul.subnav li a {
+
<ul class="drop-down">
-
float: left;
+
<li><a href="https://2011.igem.org/Team:UEA-JIC_Norwich/Registryoverview">Overview</a></li>
-
width: 145px;
+
<li><a href="https://2011.igem.org/Team:UEA-JIC_Norwich/Registrycharacterisation">Characterization</a></li>
-
background: #333 url(dropdown_linkbg.gif) no-repeat 10px center;
+
</ul>
-
padding-left: 20px;
+
</li>
-
}
+
          
-
html ul.topnav li ul.subnav li a:hover { /*--Hover effect for subnav links--*/
+
<li class="top-li"><a class="top-a down" href="https://2011.igem.org/Team:UEA-JIC_Norwich/Methods"><b>Methods</b>
-
background: #222 url(dropdown_linkbg.gif) no-repeat 10px center;
+
-
}
+
</li>
-
$(document).ready(function(){ 
+
 
-
 
+
<li class="top-li"><a class="top-a down" href=""><b>Journal</b>
-
    $("ul.subnav").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled (Adds empty span tag after ul.subnav*) 
+
<ul class="drop-down">
-
 
+
<li><a href="https://2011.igem.org/Team:UEA-JIC_Norwich/Notebook">Lab Journal</a></li>
-
    $("ul.topnav li span").click(function() { //When trigger is clicked..
+
<li><a href="https://2011.igem.org/Team:UEA-JIC_Norwich/DaytoDay">Day to Day Journal</a></li>
-
 
+
</ul>
-
         //Following events are applied to the subnav itself (moving subnav up and down
+
</li>
-
        $(this).parent().find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on click 
+
     
-
 
+
 
-
         $(this).parent().hover(function() { 
+
<li class="top-li"><a class="top-a" href="https://2011.igem.org/Team:UEA-JIC_Norwich/Safety"><b>Lab Safety</b></a>
-
         }, function(){ 
+
</li>  
-
            $(this).parent().find("ul.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up 
+
<li class="top-li"><a class="top-a" href="https://2011.igem.org/Team:UEA-JIC_Norwich/Follow_us"><b>Follow Us</b></a>
-
        }); 
+
</li>  
-
 
+
<li class="top-li"><a class="top-a down" href=""><b>Human Practices</b></a>
-
        //Following events are applied to the trigger (Hover events for the trigger)  
+
<ul class="drop-down">
-
        }).hover(function() {  
+
<li><a href="top-a down" href="https://2011.igem.org/Team:UEA-JIC_Norwich/Outreach">Outreach</a></li>
-
            $(this).addClass("subhover"); //On hover over, add class "subhover"
+
<li><a href="https://2011.igem.org/Team:UEA-JIC_Norwich/Energyconservation">Energy Conservation</a></li>
-
        }, function(){  //On Hover Out 
+
</ul></li>  
-
            $(this).removeClass("subhover"); //On hover out, remove class "subhover" 
+
   </div>
-
    });  
+
<html>
-
    
+
 
-
});
+
<div id="contentgrid">
 +
</html>

Latest revision as of 14:33, 23 June 2011