Team:TU Delft/menu test
From 2010.igem.org
(Difference between revisions)
(move code to main page) |
|||
(42 intermediate revisions not shown) | |||
Line 2: | Line 2: | ||
<style> | <style> | ||
- | + | a:hover { | |
- | #menu_button_home | + | text-decoration: none; |
+ | } | ||
+ | |||
+ | #navlist { | ||
+ | margin: 0; | ||
+ | padding: 0; | ||
+ | margin-left: 8px; | ||
+ | } | ||
+ | |||
+ | #navlist li { | ||
+ | display: block; | ||
+ | list-style-type: none; | ||
+ | float:left; | ||
+ | padding: 0; | ||
+ | margin: 0; | ||
+ | } | ||
+ | |||
+ | .menu_button { | ||
+ | display:block; | ||
+ | color: #fff; | ||
+ | border: none; | ||
+ | background-repeat: none; | ||
+ | height:45px; | ||
+ | cursor: pointer; | ||
+ | } | ||
+ | |||
+ | .menu_button_home { | ||
background-image: url(https://static.igem.org/mediawiki/2010/0/0f/Home_off.png); | background-image: url(https://static.igem.org/mediawiki/2010/0/0f/Home_off.png); | ||
width:115px; | width:115px; | ||
} | } | ||
+ | .menu_button_home_sel { background-image: url(https://static.igem.org/mediawiki/2010/8/8a/Home_on.png); } | ||
- | + | .menu_button_blog { | |
background-image: url(https://static.igem.org/mediawiki/2010/a/a0/Blog_off.png); | background-image: url(https://static.igem.org/mediawiki/2010/a/a0/Blog_off.png); | ||
width:118px; | width:118px; | ||
margin-left:-15px; | margin-left:-15px; | ||
} | } | ||
+ | .menu_button_blog_sel {background-image: url(https://static.igem.org/mediawiki/2010/0/0d/Blog_on.png);} | ||
- | + | .menu_button_competition { | |
background-image: url(https://static.igem.org/mediawiki/2010/a/a5/Competition_off.png); | background-image: url(https://static.igem.org/mediawiki/2010/a/a5/Competition_off.png); | ||
width:148px; | width:148px; | ||
margin-left:-15px; | margin-left:-15px; | ||
} | } | ||
+ | .menu_button_competition_sel { background-image: url(https://static.igem.org/mediawiki/2010/e/e0/Competition_on.png);} | ||
- | + | .menu_button_background { | |
background-image: url(https://static.igem.org/mediawiki/2010/b/bb/Background_off.png); | background-image: url(https://static.igem.org/mediawiki/2010/b/bb/Background_off.png); | ||
width:156px; | width:156px; | ||
margin-left:-15px; | margin-left:-15px; | ||
} | } | ||
+ | .menu_button_background_sel {background-image: url(https://static.igem.org/mediawiki/2010/f/f2/Background_on.png); } | ||
- | + | .menu_button_project { | |
background-image: url(https://static.igem.org/mediawiki/2010/c/ce/Project_off.png); | background-image: url(https://static.igem.org/mediawiki/2010/c/ce/Project_off.png); | ||
width:119px; | width:119px; | ||
margin-left:-15px; | margin-left:-15px; | ||
} | } | ||
+ | .menu_button_project_sel { background-image: url(https://static.igem.org/mediawiki/2010/3/3b/Project_on.png); } | ||
- | + | .menu_button_education { | |
background-image: url(https://static.igem.org/mediawiki/2010/d/df/Education_off.png); | background-image: url(https://static.igem.org/mediawiki/2010/d/df/Education_off.png); | ||
width:135px; | width:135px; | ||
margin-left:-15px; | margin-left:-15px; | ||
} | } | ||
+ | .menu_button_education_sel { background-image: url(https://static.igem.org/mediawiki/2010/9/98/Education_on.png); } | ||
- | + | .menu_button_sponsors { | |
background-image: url(https://static.igem.org/mediawiki/2010/f/f1/Sponsors_off.png); | background-image: url(https://static.igem.org/mediawiki/2010/f/f1/Sponsors_off.png); | ||
width:127px; | width:127px; | ||
margin-left:-15px; | margin-left:-15px; | ||
} | } | ||
+ | .menu_button_sponsors_sel { background-image: url(https://static.igem.org/mediawiki/2010/c/c5/Sponsors_on.png); } | ||
- | + | .menu_button_press { | |
background-image: url(https://static.igem.org/mediawiki/2010/0/0b/Press_off.png); | background-image: url(https://static.igem.org/mediawiki/2010/0/0b/Press_off.png); | ||
width:112px; | width:112px; | ||
margin-left:-15px; | margin-left:-15px; | ||
} | } | ||
- | + | .menu_button_press_sel { background-image: url(https://static.igem.org/mediawiki/2010/8/8a/Press_on.png); } | |
</style> | </style> | ||
<ul id="navlist"> | <ul id="navlist"> | ||
- | <li class="menu_button menu_button_home" | + | <li><a class="menu_button menu_button_home" href="https://2010.igem.org/Team:TU_Delft" title="Home"> </a></li> |
- | <li class="menu_button menu_button_blog" | + | <li><a class="menu_button menu_button_blog" href="https://2010.igem.org/Team:TU_Delft/blog" title="Blog"> </a></li> |
- | <li class="menu_button menu_button_competition" | + | <li><a class="menu_button menu_button_competition" href="https://2010.igem.org/Team:TU_Delft/competition" title="Competition"> </a></li> |
- | <li class="menu_button menu_button_background" | + | <li><a class="menu_button menu_button_background" href="https://2010.igem.org/Team:TU_Delft/background" title="Background"> </a></li> |
- | <li class="menu_button menu_button_project" | + | <li><a class="menu_button menu_button_project" href="https://2010.igem.org/Team:TU_Delft/project" title="Project"> </a></li> |
- | <li class="menu_button menu_button_education" | + | <li><a class="menu_button menu_button_education" href="https://2010.igem.org/Team:TU_Delft/education" title="Education"> </a></li> |
- | <li class="menu_button menu_button_sponsors" | + | <li><a class="menu_button menu_button_sponsors" href="https://2010.igem.org/Team:TU_Delft/sponsors" title="Sponsors"> </a></li> |
- | <li class="menu_button menu_button_press" | + | <li><a class="menu_button menu_button_press" href="https://2010.igem.org/Team:TU_Delft/press" title="Press"> </a></li> |
</ul> | </ul> | ||
<style> | <style> | ||
- | . | + | .button_hover { background-color: #aaa; } |
- | + | ||
</style> | </style> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
</html> | </html> |
Latest revision as of 16:47, 7 June 2010