Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1669 connectés 

  FORUM HardWare.fr
  Programmation
  HTML/CSS

  [XHTML] problème entre navigateurs malgré W3C (screens inside)

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[XHTML] problème entre navigateurs malgré W3C (screens inside)

n°259259
popok
Classe
Posté le 02-12-2002 à 21:35:49  profilanswer
 

Bonjour,  
 
actuellement je m'occupe du site de rassemblement des teams HFR du forum JV et ce soir j'ai découvert l'horrible vérité : mon site ne passe pas bien sur tous les navigateurs malgré une validation W3C en bonne et due forme :/
 
Voila l'étendue des dégats :
 
le résultat normal (en tout cas souhaité) avec IE6
 
http://perso.wanadoo.fr/popok/images/screen.png
 
 
avec mozilla
 
http://perso.wanadoo.fr/popok/images/screen2.png
 
avec opera (sur une autre partie du site)
 
http://mapage.noos.fr/lila.mae/images/screen.gif
 
Soit 3 résultats différents.
 
Si vous pouviez m'aider s'il vous plait
 
le site : http://perso.wanadoo.fr/popok/
 
le fichier CSS
 

Code :
  1. body {
  2. margin:0px;
  3. padding:0px;
  4. font-family:verdana, arial, helvetica, sans-serif;
  5. color:#333;
  6. background-color:#FFF;
  7. }
  8. h1 {
  9. margin:0px 0px 15px 0px;
  10. padding:0px;
  11. font-size:28px;
  12. line-height:28px;
  13. font-weight:900;
  14. color:#000;
  15. }
  16. p {
  17. font:11px/20px verdana, arial, helvetica, sans-serif;
  18. margin:0px 0px 16px 0px;
  19. padding:0px;
  20. }
  21. #Content>p {margin:0px;}
  22. #Content>p+p {text-indent:30px;}
  23. a {
  24. color:#07a;
  25. font-size:11px;
  26. text-decoration:none;
  27. font-weight:600;
  28. font-family:verdana, arial, helvetica, sans-serif;
  29. }
  30. a:link {color:#07a;}
  31. a:visited {color:#07a;}
  32. a:hover {color:red;}
  33. .banniere{
  34. float:right;
  35. margin-right:20px;
  36. height:38px;
  37. }
  38. #Header {
  39. margin:50px 0px 10px 0px;
  40. padding:17px 0px 0px 20px;
  41. /* For IE5/Win's benefit height = [correct height] + [top padding] + [top and bottom border widths] */
  42. height:33px; /* 14px + 17px + 2px = 33px */
  43. border-style:solid;
  44. border-color:black;
  45. border-width:1px 0px; /* top and bottom borders: 1px; left and right borders: 0px */
  46. line-height:11px;
  47. background-color:#eee;
  48. /* Here is the ugly brilliant hack that protects IE5/Win from its own stupidity.  
  49. Thanks to Tantek Celik for the hack and to Eric Costello for publicizing it.  
  50. IE5/Win incorrectly parses the "\"}"" value, prematurely closing the style  
  51. declaration. The incorrect IE5/Win value is above, while the correct value is  
  52. below. See http://glish.com/css/hacks.asp for details. */
  53. voice-family: "\"}\"";
  54. voice-family:inherit;
  55. height:14px; /* the correct height */
  56. }
  57. /* I've heard this called the "be nice to Opera 5" rule. Basically, it feeds correct  
  58. length values to user agents that exhibit the parsing error exploited above yet get  
  59. the CSS box model right and understand the CSS2 parent-child selector. ALWAYS include
  60. a "be nice to Opera 5" rule every time you use the Tantek Celik hack (above). */
  61. body>#Header {height:14px;}
  62. #Content {
  63. margin:0px 50px 50px 200px;
  64. padding:10px;
  65. }
  66. #Menu {
  67. position:absolute;
  68. top:100px;
  69. left:20px;
  70. width:172px;
  71. padding:10px;
  72. background-color:#eee;
  73. border:1px solid #000;
  74. line-height:17px;
  75. /* Again, the ugly brilliant hack. */
  76. voice-family: "\"}\"";
  77. voice-family:inherit;
  78. width:150px;
  79. }
  80. /* Again, "be nice to Opera 5". */
  81. body>#Menu {width:150px;}


 
les annotations en anglais viennent du site sur lequel j'ai récupéré les astuces pour les bugs IE5
 
merci
 
 

mood
Publicité
Posté le 02-12-2002 à 21:35:49  profilanswer
 

n°259280
gm_superst​ar
Appelez-moi Super
Posté le 02-12-2002 à 21:54:43  profilanswer
 

.banniere {
 padding-right: 20px;
 height: 38px;
 text-align: right;
}
 
#Header {
 margin:10px 0px 10px 0px;
...
}


 
Si tu développes un site qui suit les normes utilises plutôt Mozilla comme navigateur de référence, car dans ce cas là c'est lui qui avait raison ;)


---------------
Incongru : une FAQ abandonnée sur les Standards du Web - FAQ périmée de blabla@Prog
n°259292
popok
Classe
Posté le 02-12-2002 à 21:59:30  profilanswer
 

gm_superstar a écrit a écrit :

.banniere {
 padding-right: 20px;
 height: 38px;
 text-align: right;
}
 
#Header {
 margin:10px 0px 10px 0px;
...
}


 
Si tu développes un site qui suit les normes utilises plutôt Mozilla comme navigateur de référence, car dans ce cas là c'est lui qui avait raison ;)




ok, merci du conseil
je vais corriger ça


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  HTML/CSS

  [XHTML] problème entre navigateurs malgré W3C (screens inside)

 

Sujets relatifs
[MFC] Problème d'includeformulaire de m.. grrr! pkoi ça marche pas? (source inside)
Le W3C validator et le Flash[ JAVA ] probleme avec un servlet dans tomcat
probleme avec redirection automatique vers une url[JS] Problème simple...
probleme de cast dynamique avec heritage etcpetit probleme rapide pour les connaisseurs
[PHP] Ca marche pas... [formulaire inside][ JS et Navigateurs ] Probleme de compatibilité
Plus de sujets relatifs à : [XHTML] problème entre navigateurs malgré W3C (screens inside)


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR