用DIV+CSS技术设计的体育主题网站(足球介绍)
/* Website template by */
#sidebar > a:hover {
filter:alpha(opacity=60);
opacity: 0.6;
}
/** testimonials **/
#contents div#testimonials h3 {
color: ##333;
font-weight: normal;
letter-spacing: 1px;
border-bottom: 0;
padding-bottom: 0;
}
#testimonials p {
display: inline-block;
line-height: 24px;
padding-bottom: 3px;
}
#testimonials p span {
float: right;
}
#testimonials p span a {
color: ##333;
text-decoration: none;
}
#testimonials p span a:hover {
color: ##333;
}
/** Rooms, Foods Dive Sites **/
#rooms, #foods, #sites {
list-style: none;
margin: 0;
padding: 0;
}
#rooms li, #foods li,#foods2 li, #sites li {
display: inline-block;
width: 784px;
border-top: 1px solid #b7b7b7;
padding: 30px 0;
position: relative;
}
#rooms li:first-child, #foods li:first-child, #sites li:first-child {
border-top: 0;
}
#rooms li img {
float: left;
border: 1px solid ##333;
margin-right: 15px;
}
#rooms .rate {
color: #333;
display: inline-block;
font: 16px/35px "Times New Roman", Times, serif;
height: 35px;
width: 138px;
border: 1px solid #5a4535;
text-align: center;
position: absolute;
bottom: 30px;
}
/** Food **/
#foods li > {
height:100px;
width:740px;
position: relative;
}
#foods li > p {
background: url("../images/") repeat;
color: #333;
display:block;
height: 100px;
width: 740px;
padding: 6px 20px 0;
position: absolute;
left: 0;
bottom: 0;
}
#foods2 li > {
height:40px;
width:740px;
position: relative;
list-style-type:none;
}
#foods2 li > p {
background: url("../images/") repeat;
color: #333;
display:block;
height: 20px;
width: 740px;
padding: 6px 20px 0;
position: absolute;
left: 0;
bottom: 0;
list-style-type:none;
}
/** Dive Site **/
#sites li {
padding-bottom: 0;
}
#sites li img {
float: right;
border: 1px solid ##333;
margin-left: 15px;
}
/** News **/
#news {
display: inline-block;
width: 784px;
}
#news > div {
width: 560px;
border-right: 1px solid #bbbbbb;
padding-right: 35px;
}
#news > div img {
border: 1px solid ##333;
margin-bottom: 20px;
}
#news > div h2 {
margin-bottom: 12px;
}
#news > div span {
color: #5a4535;
display: block;
font: 15px/24px "Times New Roman", Times, serif;
margin-bottom: 30px;
}
#news > div {
color: ##333;
display: block;
font-size: 14px;
margin-bottom: 20px;
}
#news {
float: right;
width: 160px;
border: 0;
padding: 0;
}
#news h3 {
color: ##333;
font-size: 20px;
font-weight: normal;
border-top: 1px solid #b7b7b7;
margin: 0 0 12px;
padding-top: 18px;
text-transform: uppercase;
}
#news h3:first-child {
border: 0;
padding-top: 0px;
}
#news ul {
list-style: none;
margin: 0 0 8px;
padding: 0;
}
#news ul li a {
color: #5a4535;
display: inline-block;
font-size: 15px;
margin-bottom: 6px;
text-decoration: none;
}
#news ul li {
margin-bottom: 12px;
}
/** Contact **/
#contact form {
float: right;
color: #5a4535;
height: 320px;
width: 420px;
border: 1px solid #5a4535;
padding: 19px 19px 6px;
}
#contact form table {
border-collapse: collapse;
}
#contact form table td {
padding-bottom: 6px;
}
#contact table td:first-child {
font-size: 14px;
line-height: 30px;
width: 180px;
text-transform: uppercase;
}
#contact table {
vertical-align: top;
}
#contact form input {
height: 17px;
line-height: 17px;
width: 278px;
border: 1px solid #5a4535;
border-radius: 2px;
}
#contact textarea {
height: 143px;
line-height: 17px;
width: 338px;
border: 1px solid #5a4535;
border-radius: 2px;
overflow: auto;
resize: none;
}
#contact {
background: url("../images/") no-repeat -70px 0;
cursor: pointer;
height: 26px;
width: 60px;
border: 0;
padding: 0;
margin: 0;
}
#contact :hover {
background-position: 0 0;
}
#contact p span {
display: block;
text-transform: uppercase;
}
/*------------------------------ FOOTER ------------------------------*/
#footer {
color: #fff;
font-size: 14px;
height: 40px;
width: 860px;
margin:10 auto;
padding:0px 0;
background: url("../images/") no-repeat;
-webkit-box-shadow: 0 5px 18px rgba(0, 0, 0, 0.3);
border-radius: .8em;
}
#footer p {
padding-top: 10px;;
text-align: center;
text-transform: none;
}
.copyrights{text-indent:-9999px;height:0;line-height:0;font-size:0;overflow:hidden;}
/** Connect **/
#connect {
float: right;
display: inline-block;
line-height: 26px;
margin: 12px 0 0;
}
#connect a {
background: url("../images/") no-repeat;
display: inline-block;
height: 23px;
width: 23px;
margin-left: 10px;
}
#connect {
background-position: 0 -33px;
}
#connect {
background-position: 0 -98px;
}
#connect {
background-position: 0 -164px;
width: 28px;
}
#connect {
background-position: 0 -230px;
}
#connect :hover {
background-position: 0 0;
}
#connect :hover {
background-position: 0 -65px;
}
#connect :hover {
background-position: 0 -131px;
}
#connect :hover {
background-position: 0 -197px;
}