Bonjour à tous,
J'ai un problème de visualisation d'une liste sous Firefox. Avec les codes xHTML et CSS suivants, j'ai un pixel de séparation entre chaque élément de la liste sous Firefox alors que sous IE, je n'ai pas ce problème.
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 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" > <head> <title>Test Blocks</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" media="screen" type="text/css" title="Test blocks" href="mine_design.css" /> </head> <body> <div id="navcontainer"> <ul id="navlist"> <li><a href="#">Element Un</a></li> <li><a href="#">Element Deux</a></li> <li><a href="#">Element Trois</a></li> </ul> </div> </body> </html>
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 body { background: black; color: white; } #navcontainer { background-color: white; } #navlist { background-color: blue; } #navlist li { list-style: none; } #navlist li a { text-decoration: none; background: black; }
Comment supprimer ce défaut ?
Merci d'avance.
Marco85
Partager