Bonjour,
Je dois faire un intranet dans ma boite qui est encore sous IE6....
Je n'arrive pas à positionner ma balise <h1> dans mon header sous IE6
Non seulement il m'agrandit la taille de mon header, mais en plus mon margin-top ne fonctionne pas !!!
Mon code source :
Pouvez-vous m'aider svp ?
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 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <head> <style> html,body,ol,ul,form,fieldset,table,td,tr{ margin:0; padding:0; } body{ font-family: Trebuchet MS, Lucida Sans Unicode, Arial, sans-serif; text-align: center; /* pour corriger le bug de centrage IE */ } .clearRight{ clear:right; } #main{ margin-left: auto; margin-right: auto; width:700px; } #header{ padding-top:20px; height:90px; border: 1px solid black; text-align: left; } #header h1{ float:right; margin-top:20px; margin-right:20px; color:black; height:40px; } </style> </head> <body> <div id="main"> <div id="header"> <a href="/exploitation/index.php"><img height="82" border="1" width="300" src="/exploitation/images/logo2.jpg"></a> <h1>Exploitation</h1> </div> <div class="clearRight"></div> </div> </body> </html>
Merci beaucoup
Partager