un video vale mas que 10 mil palabras
http://youtu.be/-xVVLLkwVBA
codigo css:
Código CSS:
Ver original#nav {
display:inline-block;
width:100%;
margin:0px auto;
padding:5px 0px; /*tamaño de barra de menu*/
background:#335599 url(../images/gris3.jpg) repeat-x ;
border-radius:10px; /*some css3*/
-moz-border-radius:10px;
-webkit-border-radius:10px;
box-shadow:0 2px 2px rgba(0,0,0, .5);
-moz-box-shadow:0 2px 2px rgba(0,0,0, .5);
-webkit-box-shadow:0 2px 2px rgba(0,0,0, .5);
text-align:center;
}
#nav li {
display:inline-block;
position:relative;
list-style:none;
display: inline-block;
list-style-type: none;
white-space: nowrap;
margin: 0px auto;
padding:0px auto;
}
#nav a {
font-weight:bold;
font-size: 20px;
color:#0000a0;
display:inline-block;
padding:0px 30px;
border-radius:10px;
-moz-border-radius:10px;
-webkit-border-radius:10px;
text-shadow:1 2px 2px rgba(0,0,0, .7);
text-decoration:none;
}
/* selected menu element */
#nav .current > a {
background:#DEDEDE;
color:#359;
border-top:1px solid #f8f8f8;
box-shadow:0 2px 2px rgba(0,0,0, .7); /*some css3*/
-moz-box-shadow:0 2px 2px rgba(0,0,0, .7);
-webkit-box-shadow:0 2px 2px rgba(0,0,0, .7);
text-shadow:0 2px 2px rgba(255,255,255, 0.7);
}
#nav li:hover > a {
background:#7788aa url(../images/bg.png) repeat-x ;
color:#000;
border-top:1px solid #f8f8f8;
box-shadow:0 2px 2px rgba(0,0,0, .7); /*some css3*/
-moz-box-shadow:0 2px 2px rgba(0,0,0, .7);
-webkit-box-shadow:0 2px 2px rgba(0,0,0, .7);
text-shadow:0 2px 2px rgba(255,255,255, 0.7);
}
/* sublevels */
#nav ul li:hover a, #nav li:hover li a {
background:none;
border:none;
color:#000;
font-size: 20px;
font-weight:bold;
padding:0px 5px;
}
#nav ul li a:hover {
background:#359;
color:#fff;
border-radius:10px; /*some css3*/
-moz-border-radius:10px;
-webkit-border-radius:10px;
text-shadow:0 2px 2px rgba(0,0,0, 0.7);
}
#nav ul li:first-child > a {
-moz-border-radius-topleft:10px; /*some css3*/
-moz-border-radius-topright:10px;
-webkit-border-top-left-radius:10px;
-webkit-border-top-right-radius:10px;
}
#nav ul li:last-child > a {
-moz-border-radius-bottomleft:10px; /*some css3*/
-moz-border-radius-bottomright:10px;
-webkit-border-bottom-left-radius:10px;
-webkit-border-bottom-right-radius:10px;
}
/* drop down */
#nav li:hover > ul {
opacity:1;
visibility:visible;
}
#nav ul {
opacity:1;
visibility:hidden;
padding:0;
width:190px;
z-index: 100;
position:absolute;
background:#aabbcc url(../images/bg.png) repeat-x 0 0;
border:1px solid #7788aa;
border-radius:10px; /*some css3*/
-moz-border-radius:10px;
-webkit-border-radius:10px;
box-shadow:0 2px 2px rgba(0,0,0, .5);
-moz-box-shadow:0 2px 2px rgba(0,0,0, .5);
-webkit-box-shadow:0 2px 2px rgba(0,0,0, .5);
-moz-transition:opacity .25s linear, visibility .1s linear .1s;
-webkit-transition:opacity .25s linear, visibility .1s linear .1s;
-o-transition:opacity .25s linear, visibility .1s linear .1s;
transition:opacity .25s linear, visibility .1s linear .1s;
}
#nav ul li {
font-weight:normal;
clear:left;
float:left;
}
#nav ul a {
font-weight:normal;
text-shadow:0 2px 2px rgba(255,255,255, 0.7);
}
#nav ul ul {
left:180px;
top:0px;
AYUDA POR FAVOR