1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| nav {
clear: both;
margin: -3px 0 0;
padding: 0 0 50px;
}
nav .M li {
background: linear-gradient(#CCCC00, #9ACD32) repeat scroll 0 0 transparent;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.2), 0 20px 20px rgba(0, 0, 0, 0.15);
position: relative; /* important pour les sous-menus */
}
nav .M > li { /* uniqument le 1er niveau de li */
float: left;
width: 16.666%;
}
nav li ul {
position: absolute;
z-index: 99;
width: 100%; /* même largeur que le li parent */
} |
Partager