1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
| nav
{
float:left;
height:100px;
background-color:rgba(0, 0, 0, 0, 0);
top:0;
left:0;
position:absolute;
text-align:center;
width:100%;
}
.menu
{
height:60%;
float:left;
background-color:rgba(0, 0, 0, 1);
color:white;
text-align:center;
line-height:60px;
font-family:"Segeo UI", Arial;
width: 25%;
}
.sousmenu
{
height:40%;
float:left;
background-color:rgba(0, 0, 0, 1);
color:white;
text-align:center;
line-height:40px;
font-family:"Segeo UI", Arial;
width: 12.5%;
left:-999em;
position:relative;
}
.menu:hover
{
background-color:rgba(0, 0, 0, 0.9);
}
.sousmenu:hover
{
background-color:rgba(0, 0, 0, 0.9);
left:0;
}
#liste:hover + .sousmenu {left=0;} |
Partager