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 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
| .menu, .menu ul {
margin: 0;
padding: 0;
list-style: none;
}
.menu {
margin:200px 0 0 0;
list-style:none;
}
.menu:before, .menu:after {
content: "";
display: table;
}
.menu:after {
clear: both;
}
.menu {
zoom:1;
}
.menu li {
float:left;
position:relative;
}
.menu a {
float:left;
font-size:18px;
letter-spacing:-1px;
padding:12px 20px;
color:#009;
text-transform:uppercase;
text-decoration:none;
border-radius:6px;
-moz-border-radius:6px;
-webkit-border-radius:6px;
-o-border-radius:6px;
}
.menu li:hover > a{
background:#600;
color:#ff0;
}
*html #menu li a:hover { /* IE6 only */
color: #ff0;
}
/***** Sous-menu *****/
.menu ul{
margin: 20px 0 0 0;
_margin: 0;/*IE6 only*/
opacity: 0;
visibility: hidden;
position: absolute;
top: 48px;
left: 0;
z-index:9999;
background:#3F3;
-webkit-background:#3f3;
-moz-border-radius:0 0 6px 6px;
-webkit-border-radius:0 0 6px 6px;
-ms-border-radius:0 0 6px 6px;
-o-border-radius:0 0 6px 6px;
border-radius:0 0 6px 6px;
-moz-transition: all .2s ease-in-out;
-webkit-transition: all .2s ease-in-out;
-ms-transition: all .2s ease-in-out;
-o-transition: all .2s ease-in-out;
transition: all .2s ease-in-out;
}
.menu li:hover > ul{
opacity: 1;
visibility: visible;/*rend visible le sous menu au survol*/
margin: 0;
}
.menu ul li {
float:none;
display: block;
border: 0;
_line-height: 0; /*IE6 only*/
}
.menu ul a{
/*grandeur de chaque case de a dans ul*/
/*largeur de chaque case de a dans ul*/
_height: 10px; /*IE6 only*/
display: block;
white-space: nowrap;
float: none;/*a fait apparaitre les barres*/
text-transform: none;
}
.menu ul a:hover{
border-radius:0;
background-color:#003;
}
.menu ul li:first-child > a {
-moz-border-radius: 0;
-webkit-border-radius: 0;
border-radius: 0;
} |
Partager