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
|
#menu {/*Fixe le menu de gauche*/
padding: 0px;
margin-top: 100px;
position:fixed;
overflow: hidden ;
}
ul{list-style-type:none}/*Format des listes*/
#menu-deroulant ul {
padding: 0;
margin: 0;
list-style: none;
position: absolute;
/* on cache les sous menus complètement sur la gauche */
left: -999em;
text-align: left;
z-index: 1000;
width: 100px; /* seule ligne rajoutée */
}
#menu-deroulant :click{ left: auto;/*color: #A9A9A9; background: #666; background: linear-gradient( #999, #333);*/ }
/*#menu-deroulant :active{ color: #000; background: #777; background: linear-gradient( #777, #2C2C2C); box-shadow: 1px 1px 10px black inset, 0 1px 0 rgba( 255, 255, 255, 0.4);}*/
#menu-deroulant {
/* on centre le menu dans la page */
text-align: center;
}
#menu-deroulant li {
/* on place les liens du menu horizontalement */
float:left;
border-left:1px solid black;
display: inline-block;
}
#menu-deroulant ul li {
/*on enlève ce comportement pour les liens du sous menu*/
display: inherit;
float:left;
position: relative
}
#menu-deroulant a {
text-decoration:none;
display: block;
float:left;
width:200px;
line-height:180%;
font-family: Comic Sans MS,Candara,Verdana;
font-size: 13.0pt;
color: #FFFFFF;
text-shadow: 0px 1px 0px black;
text-shadow: 0px 1px 0px rgba( 255, 255, 255, 0.2);
padding-top: 4px;
padding-bottom: 4px;
padding-right:10px;
padding-left: 10px;
text-align:center;
background:#555;
background: linear-gradient( #777, #2C2C2C);
border-radius: 8px;
box-shadow: 0 0 5px rgba( 0, 0, 0, 0.5), 0 -1px 0 rgba( 255, 255, 255, 0.4);
}
#menu-deroulant li:active ul {
/* Au survol des li du menu on replace les sous menus */
left: auto;
color: #A9A9A9; background: #666; background: linear-gradient( #999, #333);
}
#lien {/*Format des liens*/
text-decoration:none;
line-height:200%;
font-family: Comic Sans MS,Candara,Verdana;
font-size: 13.0pt;
color: #FFFFFF;
text-shadow: 0px 1px 0px black;
text-shadow: 0px 1px 0px rgba( 255, 255, 255, 0.2);
padding-top: 4px;
padding-bottom: 4px;
padding-right:10px;
padding-left: 10px;
text-align:center;
background:#555;
background: linear-gradient( #777, #2C2C2C);
border-radius: 8px;
box-shadow: 0 0 5px rgba( 0, 0, 0, 0.5), 0 -1px 0 rgba( 255, 255, 255, 0.4);
} |
Partager