Bonjour,
je suis débutante en création de site internet et j'ai un souci de menu déroulant dans Dreamweaver. Je pense que mon code est bon, le problème doit venir de mes css mais je ne trouve pas la solution.
Je m'explique un peu plus. Je n'utilise pas de menu spry et le problème est que mon menu ne déroule pas les sous menus. Ça fait plusieurs jours que ça me prend la tête, à force de mettre le nez dedans, je n'arrive pas à trouver le problème. Si quelqu'un peut m'aider pleeaaaseeeeeeeeeee

extrait de mon code (qui doit être un peu faussé depuis que je bricole dedans...):

Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<div id="menu">
 <ul>
        <li class="hover_home"><a href="index.html"><span class="hidden">home</span></a></li>
        <li class="hover_products"><a href="products.html"><span class="hidden">products</span></a>
        <ul class="sousmenu">
        <li class="sousmenu"><a href="products.html">gold</a></li>
        <li class="sousmenu"><a href="products.html">red</a></li>
        <li class="sousmenu"><a href="products.html">green</a></li>
        <li class="sousmenu"><a href="products.html">clear</a></li>
        </ul>
        </li>
        <li class="hover_company"><a href="company.html"><span class="hidden">company</span></a>
       <ul class="sousmenu">
       <li class="sousmenu"><a href="company.html">history</a></li>
        <li class="sousmenu"><a href="company_aquo_blog.html">aquo blog</a></li>
        <li class="sousmenu"><a href="company.html">e-mail updates</a></li>
        </ul>
        </li>
        <li class="hover_events"><a href="events.html"><span class="hidden">events</span></a></li>
      </ul>
</div>


Code css : Sélectionner tout - Visualiser dans une fenêtre à part
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
.hover_home
{
	width:80px;
	float: left;
	margin: 0px;
	padding: 0px;
}
.hover_products
{
	width:100px;
	float: left;
	margin: 0px;
	padding: 0px;
}
.hover_company
{
	width:101px;
	float: left;
	margin: 0px;
	padding: 0px;
}
.hover_events
{
	width:84px;
	float: left;
	margin: 0px;
	padding: 0px;
}
.hidden
{
	display:none;
}
#menu {
	float: right;
	width: 365px;
	background-image: url(images/nav_bar_products.gif);
	background-repeat: no-repeat;
	background-position: left top;
	margin-top: 40px;
	margin-right: 0;
	margin-bottom: 0;
	margin-left: 0;
 
}
#menu ul
{
	margin: 0px;
	padding: 0px;
	font-size: 100%;
	width: 365px;
	line-height: 40px;
	height: 40px;
 	list-style-type:none;
	text-align:center;
} 	
#menu li
{
	border: 0;
	text-align:center;
	list-style-type: none;
	line-height: 40px;
	font-weight: bold;
	height: 40px;
	float: left;
 margin:auto;
 padding:0;
}
#menu li a:link, li a:visited {
	display: block;
	color: #FFF;
	text-decoration: none;
	line-height:16px;
	height:30px;
	font-family: verdana;
	font-size: 16px;
	text-transform: lowercase;
	padding-top: 10px;
	padding-bottom: 0px;
	font-weight: bold;
}
#menu li a:hover, #menu li a:focus
{
	background-color: #c3170a;
	text-decoration: none;
	width: auto;
	display: block;
	text-align: center;
}
#menu li a{
	display: block;
	cursor: pointer;
	color: #fff;
	text-decoration: none;
	font-family: verdana;
	font-size: 16px;
	line-height: 40px;
	font-weight: bold;
	height: 40px;
	text-transform: uppercase;
	text-align: center;
	margin: 0px;
	padding: 0px;
}
#menu ul li ul {
 display:none;
 }
 #menu li:hover ul {
 display:block;
 }
#menu li:hover ul li {
 float:none;
 }
#menu.sousmenu {
	list-style-type: none;
	margin: 0;
	padding: 0;
	border: 0;
	border: 1px solid #76100a;
	color: #FFF;
	text-decoration: none;
	float: left;
	width: 150px;
	font-size: 11px;
	font-weight: normal;
	background-color: #ea2e23;
	text-align: left;
	font-family: verdana;
	text-transform: capitalize;
}
#menu ul.sousmenu
{
	width:auto;
	left: auto;
	top: 0;
	text-decoration: none;
	list-style-type: none;
	font-size: 11px;
	margin: 0px;
	padding: 0px;
	display: list-item;
}
#menu ul.sousmenu li
{
	float: left;
	margin: 0;
	border: 0;
	font-weight: normal;
	padding: 0px;
	list-style-type: none;
}
#menu ul.sousmenu li a:link,
#menu.sousmenu li a:visited
{
	color: #FFF;
	margin: 0;
	border: 0;
	font-weight: normal;
}
#menu ul.sousmenu li a:hover {
	background-color: #76100a;
	font-weight: normal;
	font-size: 11px;
	line-height: 11px;
}
#menu ul.sousmenu li a {
	color: #fff;
	line-height: 11px;
	text-decoration: none;
	font-size: 11px;
	margin: 0px;
	padding: 0;
	font-weight: normal;
	font-family: verdana;
}

merci par avance