Template:Team:USyd-Australia/Template:NavStyle
From 2014.igem.org
(Difference between revisions)
Line 254: | Line 254: | ||
4-5: gBlocks*/ | 4-5: gBlocks*/ | ||
- | + | .subnav { | |
- | width: | + | width:623px; |
- | + | list-style:none; | |
+ | height:40px | ||
} | } | ||
- | + | .subnav li { | |
- | + | display:inline | |
- | + | ||
} | } | ||
- | + | ||
- | + | .subnav li a { | |
+ | height:40px; | ||
+ | float:left; | ||
+ | text-indent:-9999px; | ||
+ | text-decoration:none | ||
} | } | ||
+ | .subnav li a span { | ||
+ | float:left; | ||
+ | display:block | ||
+ | } | ||
+ | |||
+ | .subnav li#nav-3-1 a { | ||
+ | width:157px; | ||
+ | background:url(https://static.igem.org/mediawiki/2014/3/34/Usyd-Australia_subnav_proj_bar.jpg) no-repeat 0px 0 | ||
+ | } | ||
+ | |||
+ | .subnav li#nav-3-1 a:active, | ||
+ | .subnav li#nav-3-1 a:hover { | ||
+ | background-position:0px -40px | ||
+ | } | ||
+ | .subnav li#nav-3-1 a.current { | ||
+ | background-position:0px 0px -40px | ||
+ | } | ||
+ | |||
+ | .subnav li#nav-3-2 a { | ||
+ | width:93px; | ||
+ | background:url(https://static.igem.org/mediawiki/2014/3/34/Usyd-Australia_subnav_proj_bar.jpg) no-repeat -157px 0 | ||
+ | } | ||
+ | |||
+ | .subnav li#nav-3-2 a:active, | ||
+ | .subnav li#nav-3-2 a:hover { | ||
+ | background-position:-157px -40px | ||
+ | } | ||
+ | .subnav li#nav-3-2 a.current { | ||
+ | background-position:-157px -157px -40px | ||
+ | } | ||
+ | |||
+ | .subnav li#nav-3-3 a { | ||
+ | width:115px; | ||
+ | background:url(https://static.igem.org/mediawiki/2014/3/34/Usyd-Australia_subnav_proj_bar.jpg) no-repeat -250px 0 | ||
+ | } | ||
+ | |||
+ | .subnav li#nav-3-3 a:active, | ||
+ | .subnav li#nav-3-3 a:hover { | ||
+ | background-position:-250px -40px | ||
+ | } | ||
+ | .subnav li#nav-3-3 a.current { | ||
+ | background-position:-250px -250px -40px | ||
+ | } | ||
+ | |||
+ | .subnav li#nav-3-4 a { | ||
+ | width:115px; | ||
+ | background:url(https://static.igem.org/mediawiki/2014/3/34/Usyd-Australia_subnav_proj_bar.jpg) no-repeat -365px 0 | ||
+ | } | ||
+ | |||
+ | .subnav li#nav-3-4 a:active, | ||
+ | .subnav li#nav-3-4 a:hover { | ||
+ | background-position:-365px -40px | ||
+ | } | ||
+ | .subnav li#nav-3-4 a.current { | ||
+ | background-position:-365px -365px -40px | ||
+ | } | ||
+ | |||
+ | .subnav li#nav-3-5 a { | ||
+ | width:143px; | ||
+ | background:url(https://static.igem.org/mediawiki/2014/3/34/Usyd-Australia_subnav_proj_bar.jpg) no-repeat -480px 0 | ||
+ | } | ||
+ | |||
+ | .subnav li#nav-3-5 a:active, | ||
+ | .subnav li#nav-3-5 a:hover { | ||
+ | background-position:-480px -40px | ||
+ | } | ||
+ | .subnav li#nav-3-5 a.current { | ||
+ | background-position:-480px -480px -40px | ||
+ | } | ||
</style> | </style> | ||
</html> | </html> |
Revision as of 01:49, 18 October 2014