Bonjour à tous!
J'ai un petit problème.Sous FF les marges que j'attribue au divs sont respectées mais sous IE le div se centre et prend alors seulement le décalage à ce moment la .
Pour voir avec IE : http://www.zone-publique.com/kodokan/test.php
Mon code
Html :
CSS :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 <div id="header"> </div> <div id="content"> <p>Bienveue sur mon site ! </p> </div>
PS : ne pas se soucier du rectangle en bas , c'est normal
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 html,body{margin:0;padding:0; } body{font: 85%/1.3 Verdana,Arial,sans-serif; text-align: center;background: #e4e4e4;padding-bottom:20px} p{margin-top:0} h1,h2,h3{font: normal normal 200% "Trebuchet MS",Arial,sans-serif} h2{font-size:160%} h3{font-size:120%} #header { width:500px; background-image:url(../../images/fond_header.gif); height:70px; margin-left:100px; } #content { width:500px; background-color:#FFFFFF; border:1px solid #000; margin-top:5px; margin-left:100px; }
Partager