Couleur de texte non respectée et float:left non plus sous IE

ViPHP
ViPHP | 1996 Messages

08 oct. 2008, 19:09

Bonjour,

Une fois n'est pas coutume, je cale sur un bug de IE.
J'ai créé un site http://www.cabs-st.fr/index.php.
Mon problème :
1) Je n'arrive pas à comprendre pourquoi sous FF la couleur sous style CSS color:#000; est bien respectée et pas sous IE (présents dans un fichier CSS inclue via <link> entre les balises <head>
2) Dans la partie spécifique http://www.cabs-st.fr/index.php?affiche ... &langue=FR, les float: left se créé bien sous FF mais sous IE j'ai toutes les données en ligne droite.

Bref, je ne comprends pas...

EDIT : le premier est corrigé : IE lisait un commentaire en //color: vert; et s'en servait grrr vilain pas beau IE, vilain...

Bon j'ai oublié de vous donnez un peu de code :

Code CSS de la partie inciminée :

Code : Tout sélectionner

.p_contact_titre { font-size: 120%; font-weight : bold; text-decoration : underline; } .p_contact_para_email p { float : left; width : 150px; margin : 0; } .p_contact_para_email p a { font-weight : bold; }
Code HTML

Code : Tout sélectionner

<div class="p_contact_para_email"> <p style="text-decoration : underline;"> Email g&eacute;n&eacute;ral : </p> <p> <a href='mailto:cabs.silvatavares_at_orange.fr'>cabs.silvatavares_at_orange.fr</a> </p> <p style="text-decoration : underline; clear:both;"> Email direction : </p> <p> <a href='mailto:m.magne_at_cabs-st.fr'>m.magne_at_cabs-st.fr</a> </p> <p style="text-decoration : underline; clear:both;"> Email comptabilit&eacute; : </p> <p> <a href='mailto:f.tavares_at_cabs-st.fr'>f.tavares_at_cabs-st.fr</a> </p> <p style="text-decoration : underline; clear:both;"> Email CAO : </p> <p> <a href='mailto:jm.gautier.be_at_cabs-st.fr'>jm.gautier.be_at_cabs-st.fr</a> </p> </div>
EDIT : finalement j'y suis arrivé en trichant un peu
voici le code

Code : Tout sélectionner

<div class="p_contact_para_email"> <p style="text-decoration : underline;"> Email g&eacute;n&eacute;ral : </p> <p> <a href='mailto:cabs.silvatavares_at_orange.fr'>cabs.silvatavares_at_orange.fr</a> </p> <br style="clear:both;" /> <p style="text-decoration : underline; "> Email direction : </p> <p> <a href='mailto:f.tavares_at_cabs-st.fr'>f.tavares_at_cabs-st.fr</a> </p> <br style="clear:both;" /> <p style="text-decoration : underline;"> Email comptabilit&eacute; : </p> <p> <a href='mailto:m.magne_at_cabs-st.fr'>m.magne_at_cabs-st.fr</a> </p> <br style="clear:both;" /> <p style="text-decoration : underline;"> Email CAO : </p> <p> <a href='mailto:jm.gautier.be_at_cabs-st.fr'>jm.gautier.be_at_cabs-st.fr</a> </p> </div>
J'ai créé des balises <br style="clear:both;" /> et cela marche sous FF et IE

Merci encore à ceux qui ont pris le temps de lire et j'espère que cela aidera d'autres.
It is nice to be important but it is more important to be nice
http://www.aureuswebfactory.fr