Team:HUST-China/Templates/css2
From 2011.igem.org
(Difference between revisions)
(Created page with "<html> #right2 { width:872px; padding-left:10; padding-top:10; padding-bottom:0; border:#C2E69F thick solid double; background:url(../img/2.gif) repeat; height:auto; f...") |
|||
(54 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
<html> | <html> | ||
- | + | <style type="text/css"> | |
- | + | ||
- | + | body {background-image:url(https://static.igem.org/mediawiki/2011/1/1f/Background.jpg); | |
- | + | background-attachment:fixed; | |
- | + | background-repeat:repeat; | |
- | + | color:#999; | |
- | border:# | + | font-size:12px; |
- | + | line-height:1.5em;} | |
- | + | * { height:auto; | |
- | + | margin:0; | |
- | + | padding:0;} | |
- | + | img {border:none;} | |
+ | li {list-style:none;} | ||
+ | #wrap { margin:auto; | ||
+ | width:977px; | ||
+ | } | ||
+ | /* @group header */ | ||
+ | #header2 {margin-top:10px; | ||
+ | } | ||
+ | /* @group main_nav */ | ||
+ | #main_nav ul {font-size: 10px; | ||
+ | list-style: none;} | ||
+ | #main_nav { background:url(https://static.igem.org/mediawiki/2011/2/20/Hust_navi_background.png); | ||
+ | background-repeat:no-repeat; | ||
+ | height: 41px; | ||
+ | overflow: visible; | ||
+ | padding-left: 20px; | ||
+ | margin-left:-6px; | ||
+ | } | ||
+ | #main_nav li {float: left; | ||
+ | position: relative; | ||
+ | z-index: 5;} | ||
+ | #main_nav li a {color: #fff; | ||
+ | display: block; | ||
+ | width: 91px; | ||
+ | height: 35px; | ||
+ | text-decoration: none; | ||
+ | line-height: 35px; | ||
+ | text-align: center; | ||
+ | margin-top: 2px;} | ||
+ | #main_nav li a:hover {color: #000;} | ||
+ | #main_nav li ul li a {font-size: 12px; | ||
+ | width: 100%; | ||
+ | height: 25px; | ||
+ | line-height: 25px; | ||
+ | margin: 0px;} | ||
+ | #main_nav li ul li a:hover, #main_nav li.focus ul li a:hover {background: url(https://static.igem.org/mediawiki/2011/e/e6/Hust_team_subnav_over.png); | ||
+ | background-repeat:no-repeat; | ||
+ | background-position:center;} | ||
+ | #main_nav li.focus a, #main_nav li a:hover {background: url(https://static.igem.org/mediawiki/2011/8/85/Hust_team_nav_over.png) | ||
+ | background-repeat:no-repeat; | ||
+ | background-position:top; | ||
+ | background-position:left; | ||
+ | color: #000;} | ||
+ | #main_nav li.focus ul li a {background: none; | ||
+ | color: #000;} | ||
+ | #main_nav li ul {position: absolute; | ||
+ | top: 32px;left: -10px; | ||
+ | background: #fff; | ||
+ | border-color: #1d70ba; | ||
+ | border-style: none solid solid; | ||
+ | border-width: medium 1px 1px; | ||
+ | display: none;} | ||
+ | #main_nav li ul li{ float: none;} | ||
+ | </style> | ||
</html> | </html> |
Latest revision as of 18:50, 5 October 2011