Team:HUST-China/Templates/banner
From 2012.igem.org
(Difference between revisions)
HUST XueYu (Talk | contribs) |
HUST XueYu (Talk | contribs) |
||
Line 7: | Line 7: | ||
<style type="text/css"> | <style type="text/css"> | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
body { | body { | ||
/*background: #fff;*/ | /*background: #fff;*/ | ||
+ | line-height: 1; | ||
background-color: #fff; | background-color: #fff; | ||
- | background: url( | + | font-family: Calibri, Arial; |
- | + | overflow-x: hidden; | |
+ | background: url(../imgs/bg.png); | ||
} | } | ||
/*hd--------------------------------------*/ | /*hd--------------------------------------*/ | ||
#hd{ | #hd{ | ||
- | |||
width:780px; | width:780px; | ||
- | margin: | + | margin:20px auto; |
text-align:center; | text-align:center; | ||
- | |||
} | } | ||
- | + | h1{ | |
font-size: 5em; | font-size: 5em; | ||
color:#2e423e; | color:#2e423e; | ||
- | margin: | + | margin:25px 0 0 -30px; |
float:left; | float:left; | ||
width: 600px; | width: 600px; | ||
Line 53: | Line 36: | ||
width:100%; | width:100%; | ||
height:30px; | height:30px; | ||
- | background:url( | + | background:url(../imgs/under.png); |
background-repeat: repeat-x; | background-repeat: repeat-x; | ||
float:left; | float:left; | ||
Line 60: | Line 43: | ||
} | } | ||
+ | /*nav-------------------------------------*/ | ||
+ | #nav{ | ||
+ | color: #eee; | ||
+ | font-size: 24px; | ||
+ | width:780px; | ||
+ | height:50px; | ||
+ | margin:0 auto; | ||
+ | position:relative; | ||
+ | top:150px; | ||
+ | } | ||
+ | a{ | ||
+ | color:#eee; | ||
+ | text-decoration:none; | ||
+ | display:block; | ||
+ | } | ||
+ | a:hover{ | ||
+ | cursor:pointer; | ||
+ | background:#2e423e; | ||
+ | } | ||
+ | #nav ul{ | ||
+ | position:absolute; | ||
+ | margin:0 auto; | ||
+ | padding:0 25px 0 20px; | ||
+ | background: #5baf8f; /* Old browsers */ | ||
+ | background: -moz-linear-gradient(top, #5baf8f 0%, #498f7d 100%); /* FF3.6+ */ | ||
+ | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#5baf8f), color-stop(100%,#498f7d)); /* Chrome,Safari4+ */ | ||
+ | background: -webkit-linear-gradient(top, #5baf8f 0%,#498f7d 100%); /* Chrome10+,Safari5.1+ */ | ||
+ | background: -o-linear-gradient(top, #5baf8f 0%,#498f7d 100%); /* Opera 11.10+ */ | ||
+ | background: -ms-linear-gradient(top, #5baf8f 0%,#498f7d 100%); /* IE10+ */ | ||
+ | background: linear-gradient(to bottom, #5baf8f 0%,#498f7d 100%); /* W3C */ | ||
+ | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#5baf8f', endColorstr='#498f7d',GradientType=0 ); /* IE6-9 */ | ||
+ | |||
+ | } | ||
+ | |||
+ | #nav ul li{ | ||
+ | float:left; | ||
+ | padding: 12px 14px 15px 14px; | ||
+ | display:block; | ||
+ | text-align:center; | ||
+ | } | ||
+ | #nav ul li:hover{ | ||
+ | background:#2e423e; | ||
+ | text-decoration: none; | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
+ | /*main-----------------------------------*/ | ||
+ | .main{ | ||
+ | width:780px; | ||
+ | margin:0 auto; | ||
+ | position:relative; | ||
+ | } | ||
Revision as of 12:23, 24 September 2012