Bonjour,
voici mon code :
=> pourquoi le margin (top et bottom) de mon tableau n'est pas pris en compte sous ie7 ?
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 <!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" xml:lang="fr" > <head> <title>SUPERVISION</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <style type="text/css"> body{ margin:0; padding:0; background-color:red;} table{ margin:1em auto; padding:0; font-size:0.9em; border-collapse:collapse; border:2px solid #00039e; color:#00039e} th{ font-weight:bold; background-color:#00039e; color:white; font-weight:bold} th, td{ border:1px solid #00039e; text-align:center; padding:0.2em 1em; margin:0} td{background-color:white} #zone1{ margin:1em; padding:0; background-color:yellow; border:2px solid black;} </style> </head> <body> <div id="zone1"> <table> <thead> <tr> <th colspan="3">AAAAA</th> </tr> <tr> <th>AA</th> <th>AA</th> <th>AA</th> </tr> </thead> <tbody> <tr> <td>BB</td> <td id="link0">?</td> <td id="trans0">?</td> </tr> <tr> <td>BB</td> <td>?</td> <td>?</td> </tr> <tr> <td>BB</td> <td>?</td> <td>?</td> </tr> <tr> <td>BB</td> <td>?</td> <td>?</td> </tr> </tbody> </table> </div> </body> </html>
Remarque : si je mets mon tableau dans un div avec margin et padding à 0, alors le margin du tableau est pris en compte... je ne vais quand même pas mettre tous mes tableaux dans des div ????







... je ne vais quand même pas mettre tous mes tableaux dans des div ????
Répondre avec citation






Partager