Eléphant du PHP |
145 Messages
23 mai 2007, 23:37
Voila, j'ai changer de design (entre autre le positionement des div) et je n'ai plus le problème avec firefox mais maintenant j'ai un probleme avec les IE < IE7.
En effet, lorsque je surf avec IE7 et FF, je n'ai aucun problème.
Mais dés que j'utilise une ancienne version de IE, les div sont décalés et le site ne ressemble plus à rien.
J'ai en ce moment le même problème sur deux sites :
http://olivier.descis.info et
http://www.shishiza90.fr
J'ai pensé à des erreurs de CSS mais ils sont validé par W3C...
Ensuite j'ai pensé que certaines commandes peut être mal interprétées par les anciennes version de IE.
Puis au finale, j'ai pensé au doctype de ma page, et que le mode quirk n'est pas le même sur IE7 que sur IE6 et que cela décale tout.
Mon CSS
Code : Tout sélectionner
/* CSS Document */
/*mise en page*/
body{
background-color:#BBA5C1;
}
.conteneur{
margin:0 auto 0 auto;
height:800px;
width:800px;
}
.haut{
background-image:url(images/haut.jpg);
height:42px;
width:800px;
}
.baniere{
height:179px;
width:800px;
}
.gauche{
height:580px;
width:254px;
float:left;
}
.barre{
height:43px;
width:546px;
float:right;
}
.milieu{
background-image:url(images/milieu.jpg);
min-height:474px;
width:546px;
float:right;
}
.texte{
min-height:474px;
width:500px;
margin-left:17px;
}
.bas{
background-image:url(images/bas.jpg);
height:64px;
width:546px;
float:right;
}
.connecter{
height:16px;
width:200px;
font-weight:bold;
margin-left:80px;
margin-top:16px;
float:left;
}
/*news*/
.haut_news{
background-image:url(images/cadres/haut.jpg);
height:37px;
width:499px;
}
.milieu_news{
background-image:url(images/cadres/milieu.jpg);
min-height:103px;
width:499px;
display:table;
}
.bas_news{
background-image:url(images/cadres/bas.jpg);
height:55px;
width:499px;
}
.titre_news{
height:20px;
width:300px;
margin-top:14px;
margin-left:95px;
float:left;
text-align:left;
font-size:18px;
font-weight:bold;
}
.texte_news{
min-height:103px;
width:470px;
margin-top:10px;
margin-bottom:10px;
margin-left:14px;
float:left;
text-align:justify;
text-indent:50px;
}
.nom_news{
height:14px;
width:300px;
float:right;
margin-top:2px;
margin-right:20px;
font-size:13px;
text-align:right;
}
/*liens*/
a:link.ex1 {color:#000; font-size:16px; text-decoration:underline; font-weight: none; }
a:visited.ex1 {color:#000; font-size:16px; text-decoration:underline; font-weight: none; }
a:hover.ex1 { color:#000; font-size:16x; text-decoration:underline; font-weight: bold; }
Est-ce que ça peut venir du CSS?
Merci de vos réponses à tous
Albat90

La culture, c'est comme la confiture, moins on en a, plus on l'étale.