bonjour voilà mon problème, j'ai un bandeau et un bloc menu en dessous or ils ne sont pas collés, d'où cela peut-il venir?
Merci
Le HTML:
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 Le CSS: body { background-image: url(degrade.gif); background-repeat: repeat-x; background-position: top left; } #bandeau { width: 790px; margin:auto; } ul#menu{ width: 810px; padding:0; margin:0; list-style-type:none; } ul#menu li { margin-left:2px; float:left; /*pour IE*/ } ul#menu li a { display:block; float:left; width:116.3px; background-color:white; color:black; text-decoration:none; text-align:center; padding:5px; border:2px solid; /*pour avoir un effet "outset" avec IE :*/ border-color:#DCDCDC #696969 #696969 #DCDCDC; } ul#menu li a:hover { background-color:#D3D3D3; border-color:#696969 #DCDCDC #DCDCDC #696969; }
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 <body <div id="bandeau"><img src="cernybandeau.jpg" /></div> <div class="menu"> <ul id="menu"> <li><a class="actif" href="index.html">Accueil</a></li> <li><a href="legite.html">Le gîte</a></li> <li><a href="tourisme.html">Tourisme</a></li> <li><a href="tarifs.html">Tarifs</a></li> <li><a href="contact.html">Contact</a></li> <li><a href="livredor.html">Livre d'or</a></li> </ul> </div> </body>
Partager