Bonjour,

J'essais d'intégrer un menu déroulant pour mon site web. Apparemment le CSS est une bonne solution. Après avoir fouillé dans les propriétés CSS, j'ai pu commencer à adapter le menu que j'ai trouvé sur internet à mon site mais il reste des petits soucis...

- Entre le logo et le menu il reste une ligne noir. C'est intégré dans un tableau donc j'ai pu "tricher" en mettant un fond d'écran...mais il reste une ligne noir d'un pixel entre le logo et le menu...y a t'il un moyen de la supprimer en modifiant une propriété CSS du menu ou ailleurs ?

- Le sous menu (rubrique4) n'est pas en face de rubrique4. Quelle propriété faudrait t'il modifier pour corriger ?

- Le menu est décalé d'un pixel vers la gauche par rapport au logo (?!).

- Un rond apparait avant chaque rubrique et sous rubrique. J'ai pu "triché" en réduisant la taille de la police du #menu ul li / #menu li ul li à 0 pixel...mais il reste un pixel...comment peut t'on supprimer ce pixel restant ?

Voici le code html de la page :

Code : 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
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Bienvenu sur le site d'Antoine</title>
<style type="text/css">
<!--
.style3 {
	font-size: 14pt;
	text-decoration: underline;
}
.style4 {font-size: 12pt}
.style5 {font-size: 18pt;
	color: #FFFFFF;}
-->
</style>
</head>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="styletest.css" rel="stylesheet"  type="text/css" />
</head>
<body bgcolor="#FFFFFF">
<div align="center">
  <table width="920" height="728" border="0" cellpadding="0" cellspacing="0" id="table1">
 
    <tr>
      <td height="169" colspan="2"><table width="920" border="0" cellpadding="0" cellspacing="0" bgcolor="#F5BD68">
        <tr>
          <td><img src="logo.jpg" width="920" height="125" border="0" />
           <div id="menu">
              <ul>
                <li><a href="index.html">Accueil</a></li>   
                <li><a href="rubrique1.html">rubrique1</a></li>                                       	                    
                <li><a href="rubrique2.html">rubrique2</a></li>
                <li><a href="rubrique3.html">rubrique3</a></li>                		
                <li class="top ">rubrique4
                  <ul>
                    <li><a href="ssrubrique1.html">ssrubrique1</a></li>
                    <li><a href="ssrubrique2.html">ssrubrique2</a></li>
                    </ul>
                  </li>
                <li><a href="rubrique5.html">rubrique5</a></li>  
                <li><a href="rubrique6.html">rubrique6</a></li>  
                <li><a href="contact.html">Contact</a></li>
                </ul>
              </div>
          </td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td width="400" height="404" align="left"><h1 class="style5">&nbsp;</h1>
        <table width="320" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><h1 class="style5">Actualité</h1>
              <p>&nbsp;</p>
              <p>&nbsp;</p>
              <p>&nbsp;</p>
              <p>&nbsp;</p>
              <p>&nbsp;</p>
              <p>&nbsp;</p>
              <p>&nbsp;</p>
              <p>&nbsp;</p>
              <p>&nbsp;</p>
              <p>&nbsp;</p>
              <p><br />
            </p></td>
          </tr>
        </table>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <h1 class="style5">&nbsp;</h1>
      </td>
      <td width="514"><div align="right">
        <p>&nbsp;</p>
        <p><br />
          <br />
        </p>
      </div>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      </td>
    </tr>
    <tr>
      <td height="145" colspan="2"><div id="footer">
          <p align="center">Bas de page</p>
        </div></td>
    </tr>
  </table>
</div></body>
</html>

Et le code CSS :

Code : 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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
*{
	margin:0px;
	padding:0px;
	font-size: 10pt;
	padding-left: 0px;
}
 
 
h1
{
font-family:verdana;
font-size:1.9em; 
font-weight: normal;
color:#333333;
padding-left:5px;
line-height:1.6em
}
 
p
{
	font-family:Verdana;
	font-size:12pt;
	font-weight: normal;
	color:#FFFFFF;
	text-align: left;
 
}
 
a
{
color:#777777;
font-size:0.9em; 
font-weight:normal;
font-style:normal;
text-decoration:underline;
}
 
 
a:link
{
color:#FFFFFF;
font-weight:normal;
font-style:normal;
text-decoration:underline;
}
 
 
a:visited
{
color:#FFFFFF;
font-style:normal;
font-weight:normal;
text-decoration:underline;
}
 
 
a:hover
{
color: #F1A22B;
font-style:normal;
text-decoration:none;
}
 
#logo {
	width: 780px;
	margin: 0 auto;
	padding: 20px 0 0 0;
	border: 2px solid #000000;
	border-bottom: 2px solid #000000;;
}
 
#logo h1 {
	text-align: center;
	font-size: 4em;
}
 
#logo h2 {
	text-align: left;
	font-size: 1.8em;
}
 
#logo a {
	text-decoration: none;
	color: #666666;
}
 
body
 
{
	font-family:Verdana;
	text-align: center;
	color: #FFFFFF;
	background-color: #000;
	font-size: 12pt;
}
 
#wrapper 
 
{
margin-top:0px;
margin-right: auto;
margin-bottom:0px;
margin-left: auto;
width:850px;
}
 
#nav ul
 
{
list-style:none;
margin-left:340px;
padding-top:0px;
}
 
 
#nav li
 
{
text-align:left;
float:left;
margin-left:2px;
padding-left:0px;
padding-bottom:0px;
}
 
#nav ul li a
 
{
display:block;
color:#666666;
border-top:1px solid #46433e;
border-left:1px solid #46433e;
border-right:1px solid #46433e;
line-height:2.5em;
padding:0 25px 0 25px;
background:transparent;
font-weight:normal;
font-size: 0.76em;
text-decoration: none;
}
 
#nav li a:hover
{
color: #131313;
background-color:#666666;
}
 
#nav ul li .selected
{
color: #131313;
background-color:#666666;
}
 
 
 
#content
 
{
float:left;
margin-left:0px;
margin-right:0px;
width:850px;
background:#000000;
margin-bottom:10px;
}
 
 
#banner
 
{
 
height:288px;
background: url(images/home.jpg) no-repeat ;
margin-top:30px;
margin-left:30px;
margin-right:30px;
text-align:left;
font-size:0.9em;
border:8px solid #ffffff;
}
#banner2
 
{
 
height:288px;
background: url(images/inside.jpg) no-repeat ;
margin-top:30px;
margin-left:30px;
margin-right:30px;
text-align:left;
font-size:0.9em;
border:8px solid #ffffff;
}
 
#banner3
 
{
 
height:288px;
background: url(images/inside2.jpg) no-repeat ;
margin-top:30px;
margin-left:30px;
margin-right:30px;
text-align:left;
font-size:0.9em;
border:8px solid #ffffff;
}
 
 
 
#col1 h1
{
display:block;
font-size:1.6em;
font-family:Helvetica, Arial, sans-serif;
text-align:left;
font-weight:normal;
color:#ffffff;
font-weight:normal;
padding-bottom:0px;
margin-top:5px;
margin-bottom:5px;
margin-left:5px;
}
 
 
 
#col1 p
 
 { 
font: normal 0.9em Arial, Verdana, Helvetica, sans-serif;
font-size:0.9em;
color: #cccccc;
padding:10px;
text-align:left;
}
 
#col2
 
{
float:left;
margin-left:0px;
padding-left:0px;
padding-right:0px;
padding-bottom:0px;
margin-top:0px;
background: transparent;
width:910px;
text-align:left;
font-size:0.9em;
}
 
#col2 h1
{
display:block;
font-size:18pt;
font-family:Verdana;
text-align:left;
font-weight:normal;
color:#FFFFFF;
font-weight:normal;
padding-bottom:0px;
margin-top:5px;
margin-bottom:5px;
}
 
#col2 p
 
 { 
font: Verdana;
font-size:12pt;
margin-top:10px;
color: #FFFFFF;
text-align:left;
margin-left:7px;
}
 
#col2 ul
{
list-style-type:none;
margin-top:10px;
}
 
#col2 li 
{
text-align:left;
background:url(images/arrow.gif) no-repeat center left;
margin-top:5px;
margin-left:15px;
padding-left:0px;
padding-bottom:0px;
color:#ffffff;
}
 
#col2 ul li a
{
color:#e1e1e1;
padding-left:20px;
font-weight:normal;
font-size: 0.8em;
text-decoration: underline;
}
 
#col2 ul li a:hover
{
color: #fff;
text-decoration:none;
}
 
 
 
 
#dollar
 
{
float:right;
background:url(images/doller.gif) no-repeat;
width:400px;
height:300px;
margin-right:10px;
margin-top:40px;
padding:0px;
text-align:left;
font-size:0.9em;
}
 
 
#footer 
 
{
	clear:both;
	margin-top:0px;
	background:transparent;
	color:#FFFFFF;
	;
	margin-left:auto;
	margin-right:auto;
	margin-bottom: 0px;
	padding-top:0px;
	padding-right: 0px;
	padding-bottom: 0px;
	padding-left: 0px;
	text-align: left;
}
 
#footer p 
 
{
font-size:8pt;
font-family:Verdana;
font-weight:normal;
line-height: 1.4em;
color:#FFFFFF;
padding-top:10px;
padding-bottom:10px;
padding-left:5px;
text-align:center;
margin:auto;
}
 
#footer a 
{
font-size:1em;
text-decration:none;
font-weight:normal;
color:#FFFFFF;
text-align:center;
}
 
#footer a:hover
 
{
text-decoration:none;
font-weight:normal;
color:#F1A22B;
text-align:center;
}
 
#bot {
	width: 780px;
	margin: 0 auto;
	padding: 10px;
	background: #000000;
	border-top: none;
}
 
#bot p {
	margin: 0;
	padding: 0;
	text-align: center;
	font-size: x-small;
	color: #EEEEEE;
}
 
#bot a {
	color: #FFFFFF;
}
 
 
#menu {
	min-height:36px;
	height:auto;
	padding: 0px;
	margin: 0px;
	width: 920px;
}
#menu ul li {
	float:left;
	position:relative;
	z-index:0;
	font-size: 0px;
}
#menu ul li a, #menu ul li.top, #menu ul li.active, #menu ul li a.active {
	display:block;
	width:115px;
	text-align:center;
	min-height:36px;
	height:auto;
	font-weight:bold;
	letter-spacing:normal;
	text-decoration:none;
	color:#000;
	background-repeat: no-repeat;
	background-position: left bottom;
	background-color: #F5BD68;
	margin: 0px;
	padding-top: 12px;
	font-family: Verdana;
	font-size: 12pt;
	padding-left: 0px;
}
#menu ul li a:hover, #menu ul li a.active, #menu ul li.active {background-position:-159px bottom;color:white}
#menu ul li.active {
	cursor:default
}
#menu ul li.active h2 {font-size:1em}
/*sous-menu*/
#menu ul li ul {
	position:absolute;
	left:-999em;
	font-size:16pt;
	border:0px solid #D8CFC7;
	font-family: Verdana;
}
#menu li ul li {
	font-family: Verdana;
	font-size: 0px;
}
#menu li ul li a {
	min-height:18px;
	padding-top:2px;
	background-position:left top;
	border-top:1px solid #D8CFC7
}
#menu li ul li a:hover, #menu li ul li a:hover.active, #menu li ul li.active {
	min-height:18px;
	padding-top:2px;
	background-position:-159px top;
	border-top:1px solid #D8CFC7;
	margin-right:0px;
}
#menu ul li:hover ul, #menu ul li.sfhover ul {top:42px;left:-161px;margin-left:100%}

Je vous remercie d'avance de bien vouloir aider un débutant en CSS !