Style 2: Menu nằm dưới chân blog và hiện khi dê chuột xuống chân blog. Dê chuột xuống cuối blog để xem đemo
ul, li, nav
{
border: 0pt none;
font: inherit;
margin: 0pt;
padding: 0pt;
}
nav{
display: block;
}
ol, ul {
list-style: none outside none;
}
a{
text-decoration:none;
}
/*---end reset---*/
.overlay{
position:fixed;
lefT:0;
bottom:0;
height:100px;
width:100%;
background-color:transparent;
z-index:1;
}
.wrap{
width:960px;
margin:auto;
}
.nav{
background-color:#1e1e1e;
height:60px;
text-align:center;
position:fixed;
width:100%;
left:0;
bottom:-60px;
z-index:999;
-moz-transition:bottom 0.4s ease;
-webkit-transition:bottom 0.4s ease;
-o-transition:bottom 0.4s ease;
-ms-transition:bottom 0.4s ease;
transition:top 0.4s ease;
}
.overlay:hover ~ .nav,.nav:hover{
bottom:0;
}
.navigation{
display:inline-block;
}
.navigation li{
display:inline;
}
.navigation a{
display:block;
float:left;
font-family:helvetica,arial,sans-serif;
color:#fff;
font-size:12px;
height:100%;
line-height:60px;
text-transform:uppercase;
padding:0 35px;
font-weight:bold;
-moz-transition:all 0.4s ease;
-webkit-transition:all 0.4s ease;
-o-transition:all 0.4s ease;
-ms-transition:all 0.4s ease;
transition:all 0.4s ease;
}
.navigation li:nth-child(1) a:hover{
background-color:#ffa32c;
}
.navigation li:nth-child(2) a:hover{
background-color:#73e900;
}
.navigation li:nth-child(3) a:hover{
background-color:#992ff3;
}
.navigation li:nth-child(4) a:hover{
background-color:#38eec5;
}
.navigation li:nth-child(5) a:hover{
background-color:#fff000;
}
.navigation li:nth-child(6) a:hover{
background-color:#008aff;
}
.navigation li:nth-child(7) a:hover{
background-color:#ff0096;
}
.navigation li:nth-child(8) a:hover{
background-color:#ff3939;
}
- Sau đó bấm Lưu Mẫu lại.
0 nhận xét:
Đăng nhận xét