Template:Team:USyd-Australia/Template:NavStyle

From 2014.igem.org

(Difference between revisions)
Line 203: Line 203:
     position: absolute;
     position: absolute;
     top: 15px;
     top: 15px;
-
    left: 5px;
+
     height: 40px;
-
     height: 41px;
+
     width: 100%;
     width: 100%;
     z-index: 1;
     z-index: 1;
Line 259: Line 258:
-
.subnav  li a span {
+
 
 +
#subnav-3 {
 +
width:619px;
 +
left: 5px;
 +
}
 +
 
 +
 
 +
#subnav-3 li a {
 +
height:40px;
 +
float:left;
 +
text-indent:-9999px;
 +
text-decoration:none
 +
}
 +
 
 +
#subnav-3 li a span {
float:left;
float:left;
display:block
display:block
}
}
-
.subnav li#nav-3-1 a {
+
#subnav-3 li#nav-3-1 a {
width:157px;
width:157px;
-
background:url(https://static.igem.org/mediawiki/2014/4/4a/USyd-Australia_Parts-submenu.png) no-repeat 0px 0
+
background:url(https://static.igem.org/mediawiki/2014/c/cb/USyd-Australia_Project-submenu.png) no-repeat 0px 0
}
}
-
.subnav li#nav-3-1 a:active,
+
#subnav-3 li#nav-3-1 a:active,
-
.subnav li#nav-3-1 a:hover {
+
#subnav-3 li#nav-3-1 a:hover {
background-position:0px -40px
background-position:0px -40px
}
}
-
.subnav li#nav-3-1 a.current {
+
#subnav-3 li#nav-3-1 a.current {
background-position:0px 0px -40px
background-position:0px 0px -40px
}
}
-
.subnav li#nav-3-2 a {
+
#subnav-3 li#nav-3-2 a {
-
width:93px;
+
width:91px;
-
background:url(https://static.igem.org/mediawiki/2014/4/4a/USyd-Australia_Parts-submenu.png) no-repeat -157px 0
+
background:url(https://static.igem.org/mediawiki/2014/c/cb/USyd-Australia_Project-submenu.png) no-repeat -157px 0
}
}
-
.subnav li#nav-3-2 a:active,
+
#subnav-3 li#nav-3-2 a:active,
-
.subnav li#nav-3-2 a:hover {
+
#subnav-3 li#nav-3-2 a:hover {
background-position:-157px -40px
background-position:-157px -40px
}
}
-
.subnav li#nav-3-2 a.current {
+
#subnav-3 li#nav-3-2 a.current {
background-position:-157px -157px -40px
background-position:-157px -157px -40px
}
}
-
.subnav li#nav-3-3 a {
+
#subnav-3 li#nav-3-3 a {
width:115px;
width:115px;
-
background:url(https://static.igem.org/mediawiki/2014/4/4a/USyd-Australia_Parts-submenu.png) no-repeat -250px 0
+
background:url(https://static.igem.org/mediawiki/2014/c/cb/USyd-Australia_Project-submenu.png) no-repeat -248px 0
}
}
-
.subnav li#nav-3-3 a:active,
+
#subnav-3 li#nav-3-3 a:active,
-
.subnav li#nav-3-3 a:hover {
+
#subnav-3 li#nav-3-3 a:hover {
-
background-position:-250px -40px
+
background-position:-248px -40px
}
}
-
.subnav li#nav-3-3 a.current {
+
#subnav-3 li#nav-3-3 a.current {
-
background-position:-250px -250px -40px
+
background-position:-248px -248px -40px
}
}
-
.subnav li#nav-3-4 a {
+
#subnav-3 li#nav-3-4 a {
-
width:115px;
+
width:114px;
-
background:url(https://static.igem.org/mediawiki/2014/4/4a/USyd-Australia_Parts-submenu.png) no-repeat -365px 0
+
background:url(https://static.igem.org/mediawiki/2014/c/cb/USyd-Australia_Project-submenu.png) no-repeat -363px 0
}
}
-
.subnav li#nav-3-4 a:active,
+
#subnav-3 li#nav-3-4 a:active,
-
.subnav li#nav-3-4 a:hover {
+
#subnav-3 li#nav-3-4 a:hover {
-
background-position:-365px -40px
+
background-position:-363px -40px
}
}
-
.subnav li#nav-3-4 a.current {
+
#subnav-3 li#nav-3-4 a.current {
-
background-position:-365px -365px -40px
+
background-position:-363px -363px -40px
}
}
-
.subnav li#nav-3-5 a {
+
#subnav-3 li#nav-3-5 a {
-
width:143px;
+
width:142px;
-
background:url(https://static.igem.org/mediawiki/2014/4/4a/USyd-Australia_Parts-submenu.png) no-repeat -480px 0
+
background:url(https://static.igem.org/mediawiki/2014/c/cb/USyd-Australia_Project-submenu.png) no-repeat -477px 0
}
}
-
.subnav li#nav-3-5 a:active,
+
#subnav-3 li#nav-3-5 a:active,
-
.subnav li#nav-3-5 a:hover {
+
#subnav-3 li#nav-3-5 a:hover {
-
background-position:-480px -40px
+
background-position:-477px -40px
}
}
-
.subnav li#nav-3-5 a.current {
+
#subnav-3 li#nav-3-5 a.current {
-
background-position:-480px -480px -40px
+
background-position:-477px -477px -40px
}
}
</style>
</style>
</html>
</html>

Revision as of 02:42, 18 October 2014