Alignement dans un tableau sous IE et FF...
Posté : 26 févr. 2007, 16:09
Bonjour,
j'ai chercher dans l'option rechercher et je n'ai pas trouver exactement se que je voulais.
Bon, en faite, j'ai un problème avec mon tableau, j'en ai même deux
.
De un, je met un align="center" dans ma cellule, sous FF ça fonctionne sans problème alors que sous IE non
.
Exemple : http://www.shishiza90.fr/accueil.php?page=video
On peux voir que le nom des video ne sont pas centrer sur IE alors que sous FF si.
Et ça me fait pareil sur un site sur lequel je travail en local mais là c'est encore plus agaçant
voici le code :
Quelqu'un peu m'aider un peu???
Merci pour vos réponses
j'ai chercher dans l'option rechercher et je n'ai pas trouver exactement se que je voulais.
Bon, en faite, j'ai un problème avec mon tableau, j'en ai même deux
De un, je met un align="center" dans ma cellule, sous FF ça fonctionne sans problème alors que sous IE non
Exemple : http://www.shishiza90.fr/accueil.php?page=video
On peux voir que le nom des video ne sont pas centrer sur IE alors que sous FF si.
Et ça me fait pareil sur un site sur lequel je travail en local mais là c'est encore plus agaçant
voici le code :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Document sans titre</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
background-color: #000000;
}
.Style1 {
font-size: 16px;
font-family: Georgia, "Times New Roman", Times, serif;
color: #FFFFFF;
font-weight: bold;
}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>
<body onLoad="MM_preloadImages('images/accueil2.gif','images/menu2.gif','images/galerie2.gif','images/localisation2.gif','images/contact2.gif')">
<table width="800" height="488" border="0" cellspacing="0">
<tr valign="middle">
<td width="140" height="120" align="center" valign="middle" nowrap> </td>
<td align="center"><img src="images/baniere.gif" width="600" height="120"></td>
<td width="30" height="120" align="center" valign="middle"> </td>
</tr>
<tr>
<td width="140" height="40" align="center" valign="top" nowrap> </td>
<td width="500" height="340" rowspan="7" align="center" valign="middle" bordercolor="#000000"><?php
$pageOK['Accueil'] = "accueil.php"; //Déclaration des differentes variable $pageOK
$pageOK['Menu'] = "menus.php"; //Relation avec la Session $_GET['page']
$pageOK['Galerie'] = "galerie.php"; //$_GET est la barre de lien
$pageOK['Localisation'] = "localisation.php";
$pageOK['Contact'] = "contact.php"; //Donc si la variable $pageOK correspond à $_GET['page']
$pageOK['Decouverte'] = "menu_maison.php";
$pageOK['Degustation'] = "menu_maison.php";
$pageOK['Jour'] = "menu_maison.php";
if ( (isset($_GET['page'])) && (isset($pageOK[$_GET['page']])) ) { //Si $_GET['page'] n'est pas vide
include($pageOK[$_GET['page']]); //et qu'il existe une variable $pageOK en relation avec $_GET['page']
} //on appel la page qui correspond à $pageOK dans le cadre
else { //Sinon on appelle la page "accueil.php"
include('accueil.php');
}
?></td>
<td width="30" height="340" rowspan="7" align="center" valign="top"><img src="images/droit.gif" width="30" height="340"></td>
</tr>
<tr>
<td width="140" height="40" align="center" valign="middle" nowrap><a href="?page=Acceuil" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Accueil','','images/accueil2.gif',1)"><img src="images/accueil1.gif" name="Accueil" width="100" height="25" border="0"></a></td>
</tr>
<tr>
<td width="140" height="40" align="center" valign="middle" nowrap><a href="?page=Menu" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Menu','','images/menu2.gif',1)"><img src="images/menu1.gif" name="Menu" width="100" height="25" border="0"></a></td>
</tr>
<tr>
<td width="140" height="40" align="center" valign="middle" nowrap><a href="?page=Galerie" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Galerie','','images/galerie2.gif',1)"><img src="images/galerie1.gif" name="Galerie" width="100" height="25" border="0"></a></td>
</tr>
<tr>
<td width="140" height="40" align="center" valign="middle" nowrap><a href="?page=Localisation" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Localisation','','images/localisation2.gif',1)"><img src="images/localisation1.gif" name="Localisation" width="130" height="25" border="0"></a></td>
</tr>
<tr>
<td width="140" height="40" align="center" valign="middle" nowrap><a href="?page=Contact" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Contact','','images/contact2.gif',1)"><img src="images/contact1.gif" name="Contact" width="100" height="25" border="0"></a></td>
</tr>
<tr>
<td width="140" align="center" valign="middle"> </td>
</tr>
<tr align="center" valign="top">
<td height="60" colspan="3" nowrap><img src="images/bas.gif" width="600" height="60"></td>
</tr>
</table>
</body>
</html>
J'ai un problème avec un alignement dans la grande case centrale ou je veux faire afficher mes textes ou images, sous FF, tout est bien centré alors que sous IE, tout est collé a gauche donc voila...Quelqu'un peu m'aider un peu???
Merci pour vos réponses