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 98 99 100 101 102 103 104
| @charset "utf-8";
/* CSS Document */
body,ul
{
margin:0;
padding:0;
list-style:none;
font-family:Arial, Helvetica, sans-serif;
}
a
{
text-decoration:none;
color:#ccc;
font-weight:bold;
}
#header
{
width:100%;
height:35px;
background-color:#101010;
position:relative;
}
#header #logo
{
display:block;
text-indent:-9999px;
background:url(../img/logo.png) no-repeat center;
width:54px;
height:35px;
line-height:35px;
margin-left:40px;
}
#menu-deroulant, #menu-deroulant ul {
padding: 0;
margin: 0;
list-style: none;
}
#menu-deroulant {
/* on centre le menu dans la page */
text-align: right;
margin-top:-21px;
}
#menu-deroulant li {
/* on place les liens du menu horizontalement */
display: inline-block;
margin-right:25px;
}
#menu-deroulant ul li {
/* on enlève ce comportement pour les liens du sous menu */
display: inline-block;
}
#menu-deroulant a {
text-decoration: none;
display: block;
color:#ccc;
}
#menu-deroulant a:hover
{
color:#ee7014;
}
.container
{
position: relative;
}
#menu-deroulant ul {
position: absolute;
/* on cache les sous menus complètement sur la gauche */
left: -999em;
text-align: left;
width:940px;
height:250px;
background-color:#ccc;
position:absolute;
text-align: center;
}
#menu-deroulant li:hover ul {
/* Au survol des li du menu on replace les sous menus */
left: 35px;
}
#menu-deroulant li img
{
margin-top:50px;
margin-right:15px;
line-height:150px;
padding:15px;
background-color:#fff;
vertical-align:middle;
text-align:center;
width:220px;
height:150px;
}
#menu-deroulant li img:hover
{
padding:15px;
border: 2px solid blue;<br> } |
Partager