probleme avec <table>

Répondre
sven
le 27/01/2005 à 18:46
sven
bonjour, j'ai un souci avec <table>, il débute mon tableau au milieu de la page alors que je voudrai qu'il commence en haut, le code est le suivant:


  1. <?php session_start();
  2. include('fonction.php');
  3. sessionexistante();?>

  4. <html>
  5. <body background="site22.JPG">
  6. <table align="center">
  7. <tr>
  8. <td width="60" align="right"><b><u>Position</u></b></td>
  9. <td width="300" align="center"><b><u>Login</u></b></td>
  10. <td width="60" align="right"><b><u>Points</u></b></td>
  11. </tr><tr></tr>


  12. <?php
  13. connexion();
  14. $sql="SELECT login,points FROM classement ORDER BY points DESC";
  15. $req=mysql_query($sql);
  16. $nb=1;
  17. while($data=mysql_fetch_array($req))
  18. {
  19. echo '<tr><td width="60" align="right"><strong>'.$nb.'.</strong></td> <td width="300" align="center"><strong>'.$data['login'].'</strong></td> <td width="60" align="right"><strong>'.$data['points'].'</strong></td></tr>';
  20. $nb++;
  21. }

  22. deconnexion();

  23. ?></table></body></html>


si vous me croyez demandez moi l'adresse je vous la donnerai
si quelqu'un voit comment résoudre le problème merci de me l'indiquer

merci pour vos réponses
http://www.bingojeux.kalikoba.com
i M@N
le 27/01/2005 à 18:53
i M@N
Hello !
ton truc c bizarre là avec le </tr><tr></tr> :
  1. <td width="60" align="right"><b><u>Points</u></b></td>
  2. </tr><tr></tr>

Essaye :
  1. <html>
  2. <body background="site22.JPG">
  3. <table align="center">
  4. <tr>
  5. <td width="60" align="right"><b><u>Position</u></b></td>
  6. <td width="300" align="center"><b><u>Login</u></b></td>
  7. <td width="60" align="right"><b><u>Points</u></b></td>
  8. </tr></tr>

  9. <?php
  10. connexion();
  11. $sql="SELECT login,points FROM classement ORDER BY points DESC";
  12. $req=mysql_query($sql);
  13. $nb=1;
  14. while($data=mysql_fetch_array($req))
  15. {
  16. echo '<tr><td width="60" align="right"><strong>'.$nb.'.</strong></td> <td width="300" align="center"><strong>'.$data['login'].'</strong></td> <td width="60" align="right"><strong>'.$data['points'].'</strong></td></tr>';
  17. $nb++;
  18. }

  19. deconnexion();

  20. ?></table></body></html>
@+...
One Love, One Heart, One Unity.
i M@N
le 27/01/2005 à 18:55
i M@N
Reuh ...

Erf ... y'a encore un </tr> en trop :
  1. <td width="60" align="right"><b><u>Points</u></b></td>
  2. </tr>
@+...
One Love, One Heart, One Unity.
sven
le 27/01/2005 à 18:56
sven
  1. <td width="60" align="right"><b><u>Points</u></b></td>
  2. </tr>


c'est normal ça, je l'ai fait expres, c'est pour laisser une case vide, et meme sans ça, le tableau débute au milieu de la page
http://www.bingojeux.kalikoba.com
lupucide
le 27/01/2005 à 19:19
lupucide
Essaye d'ajouter <style="margin:0px;"> à <body> et <table> pour voir.
Pour souper avec le Diable mieux vaut avoir une longue cuillère.
lupucide
le 27/01/2005 à 19:20
lupucide
Oups, sans < et > le "style", excusez.
Pour souper avec le Diable mieux vaut avoir une longue cuillère.
i M@N
le 27/01/2005 à 19:24
i M@N
Reuh ...

Bah essaye
  1. <table>
au lieu de
  1. <table align="center">
@+...
One Love, One Heart, One Unity.
sven
le 27/01/2005 à 19:26
sven
ça marche un peu avec style="margin:0px;" mais ça remonte pas jusqu'en haut


pour <table align="center"> c'est pour centrer entre la gauche et la droite, j'ai déjà essayé de l'enlever
http://www.bingojeux.kalikoba.com
Pegasus
le 27/01/2005 à 20:41
Pegasus
Alors essai plutot :

<table align="center" valign="top">
<-- Observe, écoute et retiens -->
sven
le 27/01/2005 à 20:48
sven
non ça n'a rien changé non plus :(
http://www.bingojeux.kalikoba.com
Répondre
LoadingChargement en cours