Не забываем прописывать префиксы!
На этом сайте основное меню:
.nav {
margin-left: 0;
margin-bottom: 18px;
list-style: none;
}
.nav > li > a {
display: block;
font-weight: bold;
text-decoration: none;
user-select: none;
padding: 10px 15px;
outline: none;
border-radius: 1px;
-webkit-border-radius: 1px;
-moz-border-radius: 1px;
background: linear-gradient(to left, rgba(0,0,0,.3), rgba(0,0,0,.0) 50%, rgba(0,0,0,.3)), linear-gradient(#363636, #828282, #363636);
background: -webkit-linear-gradient(to left, rgba(0,0,0,.3), rgba(0,0,0,.0) 50%, rgba(0,0,0,.3)), linear-gradient(#363636, #828282, #363636);
background: -moz-linear-gradient(to left, rgba(0,0,0,.3), rgba(0,0,0,.0) 50%, rgba(0,0,0,.3)), linear-gradient(#363636, #828282, #363636);
background-size: 100% 100%, auto;
background-position: 50% 50%;
box-shadow: inset #ffffff 0 -1px 1px, inset 0 1px 1px #ffffff, #888888 0 0 0 1px, #000 0 10px 15px -10px;
-moz-box-shadow: inset #ffffff 0 -1px 1px, inset 0 1px 1px #ffffff, #888888 0 0 0 1px, #000 0 10px 15px -10px;
-webkit-box-shadow: inset #ffffff 0 -1px 1px, inset 0 1px 1px #ffffff, #888888 0 0 0 1px, #000 0 10px 15px -10px;
transition: 0.2s;
margin: 6px 0px;
text-shadow: 1px 1px 3px #000000;
-moz-text-shadow: 1px 1px 3px #000000;
-webkit-text-shadow: 1px 1px 3px #000000;
color: #ffffff;
font-size: 18px;
}
.nav > li > a:hover,
.nav > li > a:focus {
text-decoration: none;
background-size: 140% 100%, auto;
color: #ff0000;
}
.nav > .active > a {
text-decoration: none;
background-size: 140% 100%, auto;
top: 1px;
color: #0000FF;
box-shadow: inset #ccc 0 -1px 1px, inset 0 1px 1px #ccc, #777777 0 0 0 1px, 0 10px 10px -9px #000;
-moz-box-shadow: inset #ccc 0 -1px 1px, inset 0 1px 1px #ccc, #777777 0 0 0 1px, 0 10px 10px -9px #000;
-webkit-box-shadow: inset #ccc 0 -1px 1px, inset 0 1px 1px #ccc, #777777 0 0 0 1px, 0 10px 10px -9px #000;
text-shadow: 1px 1px 3px #fff;
-webkit-text-shadow: 1px 1px 3px #fff;
-moz-text-shadow: 1px 1px 3px #fff;
}
.nav > .active > a:hover,
.nav > .active > a:focus{
text-decoration: none;
background-size: 140% 100%, auto;
color: #0000CD;
}
Горизонтальное меню тут http://guamka.ru :
.nav-pills > li > a {
padding-top: 8px;
padding-bottom: 8px;
margin-top: 2px;
margin-bottom: 2px;
margin-left: 5px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
color: #FFFAFA;
font-size: 18px;
font-weight: bold;
text-shadow: 1px 2px 5px #1E3B82;
display: inline-block;
transition: .5s;
-webkit-transition: .5s;
-moz-transition: .5s;
box-shadow: inset rgba(39,64,139,.5) -3px -3px 8px, inset rgba(255,250,250,.9) 3px 3px 8px, rgba(39,64,139,.8) 3px 3px 8px -3px;
-moz-box-shadow: inset rgba(39,64,139,.5) -3px -3px 8px, inset rgba(255,250,250,.9) 3px 3px 8px, rgba(39,64,139,.8) 3px 3px 8px -3px;
-webkit-box-shadow: inset rgba(39,64,139,.5) -3px -3px 8px, inset rgba(255,250,250,.9) 3px 3px 8px, rgba(39,64,139,.8) 3px 3px 8px -3px;
}
.nav-pills > li > a:hover,
.nav-pills > li > a:focus {
color: #FF0000 !important;
text-shadow: 1px 2px 5px #FFFAFA !important;
-webkit-box-shadow: inset 0 0px 5px 4px rgba(39,64,139,.9), inset 0 0 0 2em rgba(255,250,250,.7);
-moz-box-shadow: inset 0 0px 5px 4px rgba(39,64,139,.9), inset 0 0 0 2em rgba(255,250,250,.7);
box-shadow: inset 0 0px 5px 4px rgba(39,64,139,.9), inset 0 0 0 2em rgba(255,250,250,.7);
}
.nav-pills > .active > a,
.nav-pills > .active > a:hover,
.nav-pills > .active > a:focus {
color: #FFD700;
background-image: url("../images/stars.gif") !important;
background-repeat: repeat;
background-color: transparent !important;
text-shadow: 1px 1px 2px #1E3B82;
}
гифка
Leave your comments