Hola a todos, tengo un problemilla con un menu horizontal no consigo que el elemento <li><a> mediante la propiedad hover se me ilumine en un tamaño concreto. vamos q no consigo amplirlo para que me quede un menu pretty.
[IMG]C:\Documents and Settings\smartin\Escritorio\dibujo.bmp[/IMG]
el css es el siguiente:
#menu-bar {
margin: 0px 0px 0px 0px;
padding: 0px 6px 0px 6px;
height: 33px;
width: 93%;
line-height: 100%;
border-radius: 22px;
-webkit-border-radius: 22px;
-moz-border-radius: 22px;
box-shadow: 2px 2px 3px #666666;
-webkit-box-shadow: 2px 2px 3px #666666;
-moz-box-shadow: 2px 2px 3px #666666;
background: #328AFC;
filter: progid:DXImageTransform.Microsoft.gradient(startCo lorstr=#2DA8FA, endColorstr=#112A7A);
background: -webkit-gradient(linear, left top, left bottom, from(#2DA8FA), to(#112A7A));
background: -moz-linear-gradient(top, #2DA8FA, #112A7A);
border: solid 1px #6D6D6D;
overflow:visible;
}
#menu-bar li {
margin: 0px 6px 0px 6px;
padding: 0px 0px 7px 0px;
float: left;
position: relative;
list-style: none;
z-index:100;
/*display:inline;*/
}
#menu-bar a {
font-size: 13px;
color:#FFFFFF;
text-decoration: none;
display:block;
padding: 8px 20px 8px 0px;
margin: 0px 0px 0px 0px;
border-radius: 0px;
-webkit-border-radius: 0px;
-moz-border-radius: 0px;
border-right: solid 1px #FFFFFF;
/*border-left: solid 1px #FFFFFF;*/
}
#menu-bar .selected a, #menu-bar li:hover > a {
background: #0399D4;
filter: progid:DXImageTransform.Microsoft.gradient(startCo lorstr=#424242, endColorstr=#424242);
background: -webkit-gradient(linear, left top, left bottom, from(#424242), to(#424242));
background: -moz-linear-gradient(right, #424242, #424242);
color:;/*lletra sempre blanca meny sup*/
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
text-shadow: none;
filter: alpha(opacity=100);
opacity: 1;
}
/*al navegar per sobre de l'element del submenu*/
#menu-bar ul li:hover a, #menu-bar li:hover li a {
background: none;
border: none;
color: #FFFFFF;
-box-shadow: none;
-webkit-box-shadow: none;
-moz-box-shadow: none;
}
#menu-bar ul a:hover {
background: #0399D4 !important;
filter: progid:DXImageTransform.Microsoft.gradient(startCo lorstr=#04ACEC, endColorstr=#0186BA);
background: -webkit-gradient(linear, left top, left bottom, from(#04ACEC), to(#0186BA)) !important;
background: -moz-linear-gradient(top, #04ACEC, #0186BA) !important;
color: #FFFFFF !important;
border-radius: 0;
-webkit-border-radius: 0;
-moz-border-radius: 0;
}
#menu-bar ul {
background: #424242;
filter: progid:DXImageTransform.Microsoft.gradient(startCo lorstr=#0A0A0A, endColorstr=#454545);
background: -webkit-gradient(linear, left top, left bottom, from(#0A0A0A), to(#454545));
background: -moz-linear-gradient(top, #0A0A0A, #454545);
display: none;
margin: 0;
padding: 0;
width: 310px;
position: absolute;
top: 30px;
left: 0;
border: solid 1px #B4B4B4;
border-radius: 5px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-webkit-box-shadow: 2px 2px 3px #222222;
-moz-box-shadow: 2px 2px 3px #222222;
box-shadow: 2px 2px 3px #222222;
z-index:100;
}
#menu-bar li:hover > ul {
display: block;
}
#menu-bar ul li {
float: none;
margin: 0;
padding: 0;
}
#menu-bar ul li ul {
filter: alpha(opacity=85);
opacity: 0.85;
}
#menu-bar ul a {
padding:10px 0px 10px 15px;
color:color:#FFFFFF /*#424242 */!important;
font-size:12px;
font-style:normal;
font-family:arial;
font-weight: normal;
}
#menu-bar ul li:first-child > a {
border-top-left-radius: 5px;
-webkit-border-top-left-radius: 5px;
-moz-border-radius-topleft: 5px;
border-top-right-radius: 5px;
-webkit-border-top-right-radius: 5px;
-moz-border-radius-topright: 5px;
}
#menu-bar ul li:last-child > a {
border-bottom-left-radius: 5px;
-webkit-border-bottom-left-radius: 5px;
-moz-border-radius-bottomleft: 5px;
border-bottom-right-radius: 5px;
-webkit-border-bottom-right-radius: 5px;
-moz-border-radius-bottomright: 5px;
}
#menu-bar:after {
content: ".";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
#menu-bar {
display: block;
}
html[xmlns] #menu-bar {
display: block;
}
* html #menu-bar {
height: 1%;
}
gracias.