probleme ... centrer ma banniere ....

Nouveau WRInaute
Bonjour, je suis un mélanger dans tout se scriptage ;) et je voudrais que ma baniere soit centrer.

align=\"middle\" n'a pas l'air de marcher

voila le code:

echo " <td width=\"1000\" height=\"214\">
<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\" width=\"1000\" height=\"214\" id=\"banniere\" align=\"middle\">
<param name=\"allowscriptAccess\" value=\"sameDomain\">
<param name=\"movie\" value=\"http://allstars.wizardcreation.com/Vimmy/themes/2K_BoB/images/header.swf\">
<param name=\"quality\" value=\"high\">
<param name=\"bgcolor\" value=\"#ffffff\">
<embed src=\"http://allstars.wizardcreation.com/Vimmy/themes/2K_BoB/images/header.swf\" quality=\"high\" bgcolor=\"#ffffff\" width=\"1000\" height=\"214\" name=\"banniere\" align=\"middle\" allowscriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\">
</object>
</td>";

Merci !!!
 
Nouveau WRInaute
ok j'ai trouver la solution mais maintenant, dans Fire fox sa ne se centre pas... tout est beau dans ie par exemple...

voilà mon code :

echo " <table width=\"1000\" align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\" width=\"1000\" height=\"214\" id=\"banniere\" align=\"middle\">
<param name=\"allowscriptAccess\" value=\"sameDomain\">
<param name=\"movie\" value=\"http://allstars.wizardcreation.com/Vimmy/themes/2K_BoB/images/header.swf\">
<param name=\"quality\" value=\"high\">
<param name=\"bgcolor\" value=\"#ffffff\">
<embed src=\"http://allstars.wizardcreation.com/Vimmy/themes/2K_BoB/images/header.swf\" quality=\"high\" bgcolor=\"#ffffff\" width=\"1000\" height=\"214\" name=\"banniere\" align=\"middle\" allowscriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\">
</object>
</td>";
 
Nouveau WRInaute
Code:
echo " 
<div align="center"></div>
<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\" width=\"1000\" height=\"214\" id=\"banniere\" align=\"middle\"> 
<param name=\"allowscriptAccess\" value=\"sameDomain\"> 
<param name=\"movie\" value=\"http://allstars.wizardcreation.com/Vimmy/themes/2K_BoB/images/header.swf\"> 
<param name=\"quality\" value=\"high\"> 
<param name=\"bgcolor\" value=\"#ffffff\"> 
<embed src=\"http://allstars.wizardcreation.com/Vimmy/themes/2K_BoB/images/header.swf\" quality=\"high\" bgcolor=\"#ffffff\" width=\"1000\" height=\"214\" name=\"banniere\" align=\"middle\" allowscriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"> 
</object> 
</td>";

cela ne fait que me donner une belle page blanche rien de plus ... Je ne sais pas si c'est juste moi qui ne c'est pas ou mettre cette ligne mais sinon ca ne fonctionne pas
 
WRInaute impliqué
essaye plutot comme ça
<div style="width: 100%; margin:auto;">
echo " <table width=\"1000\" align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\" width=\"1000\" height=\"214\" id=\"banniere\" align=\"middle\">
<param name=\"allowscriptAccess\" value=\"sameDomain\">
<param name=\"movie\" value=\"http://allstars.wizardcreation.com/Vimmy/themes/2K_BoB/images/header.swf\">
<param name=\"quality\" value=\"high\">
<param name=\"bgcolor\" value=\"#ffffff\">
<embed src=\"http://allstars.wizardcreation.com/Vimmy/themes/2K_BoB/images/header.swf\" quality=\"high\" bgcolor=\"#ffffff\" width=\"1000\" height=\"214\" name=\"banniere\" align=\"middle\" allowscriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\">
</object>
</td>";
</div>

tu devrais etre tranquille pour FF et pour IE
 
WRInaute occasionnel
Grosse banane :p

Kijer t'a donné la solution mais tu l'as mal mise en place !!

Code:
echo " 
<div align="center"> // </div> tu fermes le div alors que tu viens juste de l'ouvrir. Il doit englober tout ton code !!
<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\" width=\"1000\" height=\"214\" id=\"banniere\" align=\"middle\"> 
<param name=\"allowscriptAccess\" value=\"sameDomain\"> 
<param name=\"movie\" value=\"http://allstars.wizardcreation.com/Vimmy/themes/2K_BoB/images/header.swf\"> 
<param name=\"quality\" value=\"high\"> 
<param name=\"bgcolor\" value=\"#ffffff\"> 
<embed src=\"http://allstars.wizardcreation.com/Vimmy/themes/2K_BoB/images/header.swf\" quality=\"high\" bgcolor=\"#ffffff\" width=\"1000\" height=\"214\" name=\"banniere\" align=\"middle\" allowscriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"> 
</object> 
</td>
</div>";  // ici la fermeture du div
 
WRInaute occasionnel
Ola la trop complexe !! Déjà ton site est contenu dans une frame ce qui est loin d'être idéal !! Ensuite tu as fait un enchevetrement de table ... j'ai pas le courage de tout reconstituer !!

Peut etre juste une piste, tes table (en tout cas certains) ont une largeur de 1000px ... essaye avec un width="100%" ...
 
Nouveau WRInaute
Pour centrer horizontalement un élément qui ne soit pas un bloc de text (auquel text-align suffie), il faut que le conteneur ai une taille fixé, en pourcentage en pixel/whatever,
et donner le style margin:0 auto. Ici c'est le auto qui vas centrer l'élément.

Code:
<div style="width:100%">
    <p style="width:50%,margin:0 auto">
        mon blablabla
    </p>
</div>
 
Nouveau WRInaute
Code:
echo " <div style="width:100%"> 
    <p style="width:100%,margin:0 auto"> 
       <table width=\"1000\" align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"> 
       <object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\" width=\"1000\" height=\"214\" id=\"banniere\" align=\"middle\"> 
       <param name=\"allowscriptAccess\" value=\"sameDomain\"> 
       <param name=\"movie\" value=\"http://allstars.wizardcreation.com/Vimmy/themes/2K_BoB/images/header.swf\"> 
       <param name=\"quality\" value=\"high\"> 
       <param name=\"bgcolor\" value=\"#ffffff\"> 
       <embed src=\"http://allstars.wizardcreation.com/Vimmy/themes/2K_BoB/images/header.swf\" quality=\"high\" bgcolor=\"#ffffff\" width=\"1000\" height=\"214\" name=\"banniere\" align=\"middle\" allowscriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"> 
       </object> 
       </td>";
</p> 
</div>

page blanche dans ie alors si c'est vrais que dans firefox certain le vois correctement je commence a penser que les autres ont juste a pas venir ;)
 
WRInaute occasionnel
kevon a dit:
j'ai esseiller autre chose ... quelqu'un pourrait-il tester avec ff svp ?

Pas mieux !!

Essaye ca par contre :


Code:
echo '<div align="center" style="width:100%">    // j'ai rajouté align="center" !!
    <p style="width:100%,margin:0 auto">
       <table width="1000" align="center" border="0" cellpadding="0" cellspacing="0">
       <tr><td>
       <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="1000" height="214" id="banniere" align="middle">
       <param name="allowscriptAccess" value="sameDomain">
       <param name="movie" value="http://allstars.wizardcreation.com/Vimmy/themes/2K_BoB/images/header.swf">
       <param name="quality" value="high">
       <param name="bgcolor" value="#ffffff">
       <embed src="http://allstars.wizardcreation.com/Vimmy/themes/2K_BoB/images/header.swf" quality="high" bgcolor="#ffffff" width="1000" height="214" name="banniere" align="middle" allowscriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
       </object>
       </td></tr>
       </table>
</p>
</div>';
 
Nouveau WRInaute
non je comprend pas ... dans ie tout se que vous me dites produit une page blanche avec rien mon site ne s'ouvre pas .... il n'y a juste rien ....

donc il y a certainement une erreure quelque par
 
WRInaute occasionnel
Chez moi ton site s'affiche normalement sous ie6 et également sous firefox mais avec la baniere alignée à gauche !!
 
WRInaute accro
tu as des validateurs en bas de page ça peut être utile ... :wink:

# Line 406, Column 570: end tag for "TABLE" omitted, but its declaration does not permit this .

…title="Valid CSS!" /></a></div></body></html>



* You forgot to close a tag, or
* you used something inside this tag that was not allowed, and the validator is complaining that the tag should be closed before such content can be allowed.

The next message, "start tag was here" points to the particular instance of the tag in question); the positional indicator points to where the validator expected you to close the tag.
# Info Line 9, Column 26: start tag was here .

<body bgcolor="#36353D"> <table width="1000" align="center" border="0" cellpadd

c'est normal que ça passe sous IE mais pas sous FF. IE boufferais de la m...e si tu lui demandais de le faire.

concrètement tu as des tables pas fermées, des td fermées mais pas ouvertes plus quelques dizaines d'autre erreurs html de base.

En fait, mieux vaux coder sous FF tu est plus vite stoppé quand c'est pas bon.

ce qui peut t'aider c'est ça :

et dans FIREFOX menu Outils -> Inspecteur DOM -> bouton Examiner
 
Discussions similaires
Haut