par
@rthur » 02 sept. 2008, 23:55
Comme t'as pu le voir avec les captures d'écran c'est un problème d'affichage propre à ff3; donc j'en déduis que même en mettant bien les mains dans l'camboui css (ça fait pas trop garagiste comme expression) j'pourrai pas corriger ça.
Si c'est un problème d'affichage, tu ne pourra le corriger QUE en modifiant le HTML ou le CSS vu que ce sont les 2 seules composantes qui interviennent pour l'affichage.
Après selon le moteur de rendu (IE, Mozilla/Gecko, Safari/Chrome/Webkit) il peut y avoir des différences d'interprétation et c'est à toi d'apporter des modifications pour uniformiser le rendu.
Qu'en penses-tu? si tu as une solution je suis preneur!

J'en pense que tu as un éditeur de code qui sent le moisi

Tu as des caractères invisibles aux endroits où tu as des problèmes de rendus...
Copie-colle mon code ci-dessous et tu ne devrais plus voir ce décalage.
Ce code est exactement le même que le tien en ayant supprimé les 4 caractères problématiques et en ayant intégré la CSS (juste pour tester, ressort là si tu veux)
<!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" lang="fr">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
<meta content="stefh7" name="author" />
<style>
html, body {
margin: 0;
padding: 0;
height: 100%;
background-color: #000000;
font-family: Arial, Helvetica, sans-serif;
font-size: small;
color: white;
}
/* ELEMENTS PRINCIPAUX */
#global {
background-color: transparent;
display: block;
margin-left: auto;
margin-right: auto;
margin-top: 0;
margin-bottom: 0;
padding: 0;
padding-bottom: 10px;
height: 100%;
width: 900px;
}
#header {
background-color: transparent;
background-image: url(../img/mb.png);
background-repeat: no-repeat;
display: block;
margin: 0;
padding: 0;
height: 100px;
}
#center {
background-color: transparent;
display: block;
margin: 0;
margin-top: 20px;
padding: 0;
padding-bottom: 3px;
}
#left {
background-color: transparent;
display: block;
margin-top: 0px;
margin-bottom: 0px;
position: relative;
float: left;
width: 220px;
text-align: center;
padding: 5px;
padding-top: 0px;
padding-bottom: 2px;
}
.leftboxes {
display: block;
height: 40px;
border: 2px solid #2d2e30;
padding-top: 0px;
margin-bottom: 5px;
}
.leftboxes ul {
text-align: left;
color: white;
margin-left: 14px;
}
.leftboxes li {
list-style-type: katakana;
}
.leftboxes h3 {
display: block;
background-color: #232425;
margin: 2px;
margin-bottom: 4px;
text-align: center;
font-weight: bold;
border: 1px solid #4c4e50;
}
#right {
background-color: transparent;
margin-left: 230px;
margin-top: 5px;
margin-right: 5px;
padding-top: 0px;
padding: 3px;
display: block;
height: auto;
min-height: 200px;
border: 1px solid #2d2e30;
}
#footer {
background-color: transparent;
display: block;
margin: 0;
padding: 0;
height: 30px;
border-top: 1px solid #2d2e30;
}
.spacer {
clear: both;
}
/* MENU */
#MainMenu
{
height: 20px;
background-image: url(../images/bg_052.gif);
margin: 0;
border: 0;
}
#tab
{
margin:0;
top:0;
}
#tab ul
{
margin:0;
padding:0;
list-style:none;
float:left;
}
#tab li
{
display:inline;
float:left;
margin:0;
padding:0;
}
#tab a
{
background:#000000 url("../images/bright_052.gif") no-repeat right top;
margin:0;
padding:0;
text-decoration:none;
border:0;
display:block;
float:left;
}
#tab a span
{
display:block;
background:url("../images/bleft_052.gif") no-repeat left top;
padding:0 15px 0 35px;
font-family:Arial, Helvetica, sans-serif;
font-size:11;
color:#C2C2C2;
font-weight:bold;
line-height:20px;
}
#tab a:hover,#tab li.item_active a
{
background-position:right bottom;
border-color:#FF9300;
}
#tab a:hover span,#tab li.item_active a span
{
background-position:left bottom;
color:#FFFFFF;
font-weight:bold;
font-style:normal;
text-decoration:none;
}
/* Eléments */
img {
border: none;
}
img, a {
outline: none;
}
hr {
color: #2d2e30;
height: 1px;
}
label {
display:block;
width:150px;
float:left;
}
fieldset {
border: 1px solid #2d2e30;
}
</style>
<title>Music*boX v.3 :: accueil</title><script type="text/javascript" src="js/smoothscroll.js"></script>
</head>
<body>
<a name="top"></a>
<div id="global">
<div id="header">
</div>
<div id="MainMenu">
<div id="tab">
<ul>
<li class="item_active"><a href="index.php"><span>Accueil</span></a></li>
<li><a href="#"><span>About</span></a></li>
<li><a href="#"><span>Contact</span></a></li>
</ul>
</div>
</div>
<div id="center">
<div id="left">
<div class="leftboxes">
<h3>Item</h3>
</div>
<div class="leftboxes">
<h3>Item</h3>
</div>
<div class="leftboxes">
<h3>Item</h3>
</div> </div>
<div id="right">
</div>
<div class="spacer">
</div>
</div>
<div id="footer">
FOOTER
</div>
</div>
</body>
</html>
[quote="Stef"]Comme t'as pu le voir avec les captures d'écran c'est un problème d'affichage propre à ff3; donc j'en déduis que même en mettant bien les mains dans l'camboui css (ça fait pas trop garagiste comme expression) j'pourrai pas corriger ça.[/quote]Si c'est un problème d'affichage, tu ne pourra le corriger QUE en modifiant le HTML ou le CSS vu que ce sont les 2 seules composantes qui interviennent pour l'affichage.
Après selon le moteur de rendu (IE, Mozilla/Gecko, Safari/Chrome/Webkit) il peut y avoir des différences d'interprétation et c'est à toi d'apporter des modifications pour uniformiser le rendu.
[quote="Stef"]Qu'en penses-tu? si tu as une solution je suis preneur! :D[/quote]J'en pense que tu as un éditeur de code qui sent le moisi :D
Tu as des caractères invisibles aux endroits où tu as des problèmes de rendus...
Copie-colle mon code ci-dessous et tu ne devrais plus voir ce décalage.
Ce code est exactement le même que le tien en ayant supprimé les 4 caractères problématiques et en ayant intégré la CSS (juste pour tester, ressort là si tu veux)
[php]
<!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" lang="fr">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
<meta content="stefh7" name="author" />
<style>
html, body {
margin: 0;
padding: 0;
height: 100%;
background-color: #000000;
font-family: Arial, Helvetica, sans-serif;
font-size: small;
color: white;
}
/* ELEMENTS PRINCIPAUX */
#global {
background-color: transparent;
display: block;
margin-left: auto;
margin-right: auto;
margin-top: 0;
margin-bottom: 0;
padding: 0;
padding-bottom: 10px;
height: 100%;
width: 900px;
}
#header {
background-color: transparent;
background-image: url(../img/mb.png);
background-repeat: no-repeat;
display: block;
margin: 0;
padding: 0;
height: 100px;
}
#center {
background-color: transparent;
display: block;
margin: 0;
margin-top: 20px;
padding: 0;
padding-bottom: 3px;
}
#left {
background-color: transparent;
display: block;
margin-top: 0px;
margin-bottom: 0px;
position: relative;
float: left;
width: 220px;
text-align: center;
padding: 5px;
padding-top: 0px;
padding-bottom: 2px;
}
.leftboxes {
display: block;
height: 40px;
border: 2px solid #2d2e30;
padding-top: 0px;
margin-bottom: 5px;
}
.leftboxes ul {
text-align: left;
color: white;
margin-left: 14px;
}
.leftboxes li {
list-style-type: katakana;
}
.leftboxes h3 {
display: block;
background-color: #232425;
margin: 2px;
margin-bottom: 4px;
text-align: center;
font-weight: bold;
border: 1px solid #4c4e50;
}
#right {
background-color: transparent;
margin-left: 230px;
margin-top: 5px;
margin-right: 5px;
padding-top: 0px;
padding: 3px;
display: block;
height: auto;
min-height: 200px;
border: 1px solid #2d2e30;
}
#footer {
background-color: transparent;
display: block;
margin: 0;
padding: 0;
height: 30px;
border-top: 1px solid #2d2e30;
}
.spacer {
clear: both;
}
/* MENU */
#MainMenu
{
height: 20px;
background-image: url(../images/bg_052.gif);
margin: 0;
border: 0;
}
#tab
{
margin:0;
top:0;
}
#tab ul
{
margin:0;
padding:0;
list-style:none;
float:left;
}
#tab li
{
display:inline;
float:left;
margin:0;
padding:0;
}
#tab a
{
background:#000000 url("../images/bright_052.gif") no-repeat right top;
margin:0;
padding:0;
text-decoration:none;
border:0;
display:block;
float:left;
}
#tab a span
{
display:block;
background:url("../images/bleft_052.gif") no-repeat left top;
padding:0 15px 0 35px;
font-family:Arial, Helvetica, sans-serif;
font-size:11;
color:#C2C2C2;
font-weight:bold;
line-height:20px;
}
#tab a:hover,#tab li.item_active a
{
background-position:right bottom;
border-color:#FF9300;
}
#tab a:hover span,#tab li.item_active a span
{
background-position:left bottom;
color:#FFFFFF;
font-weight:bold;
font-style:normal;
text-decoration:none;
}
/* Eléments */
img {
border: none;
}
img, a {
outline: none;
}
hr {
color: #2d2e30;
height: 1px;
}
label {
display:block;
width:150px;
float:left;
}
fieldset {
border: 1px solid #2d2e30;
}
</style>
<title>Music*boX v.3 :: accueil</title><script type="text/javascript" src="js/smoothscroll.js"></script>
</head>
<body>
<a name="top"></a>
<div id="global">
<div id="header">
</div>
<div id="MainMenu">
<div id="tab">
<ul>
<li class="item_active"><a href="index.php"><span>Accueil</span></a></li>
<li><a href="#"><span>About</span></a></li>
<li><a href="#"><span>Contact</span></a></li>
</ul>
</div>
</div>
<div id="center">
<div id="left">
<div class="leftboxes">
<h3>Item</h3>
</div>
<div class="leftboxes">
<h3>Item</h3>
</div>
<div class="leftboxes">
<h3>Item</h3>
</div> </div>
<div id="right">
</div>
<div class="spacer">
</div>
</div>
<div id="footer">
FOOTER
</div>
</div>
</body>
</html>
[/php]