Probleme de mise en page

Bonjour,

J ai un soucis de mise en page...

Voila, actuellement, lors de la pagination des resultats il y a le lien "suivant" et "precedent" qui s affichent un en dessous de l'autre et e voudrait qu'ils s'affichent un a cote de l'autre..

Mais je n'y arrive pas!

Voila mon code a l etat brut :

// on fait une boucle qui va faire un tour pour chaque enregistrement
	while($data = mysql_fetch_array($req)) 
    	{	
        	echo '<table width="534" height="31" border="0">
                <tr>
                  <td width="410" height="25" bordercolor="#044A74" bgcolor="#025384">'.$data['nomconcoursargent'].'</td>
                  <td width="107" bordercolor="#044A74" bgcolor="#025384"><div align="center">'.$data['plusinfo'].'</div></td>
                </tr>
              </table>
			  <table width="534" border="0">
                <tr>
                  <td width="155" height="83" bordercolor="#044A74" bgcolor="#025384">Lots mis en jeu : </td>
                  <td width="354" bordercolor="#044A74" bgcolor="#025384">'.$data['jeuxconcoursargent'].'</td>
                </tr>
              </table>			  
			  <table width="534" border="0">
                <tr>
                  <td width="522" bordercolor="#044A74" bgcolor="#025384"><div align="center">'.$data['lienconcoursargent'].'</div></td>
                </tr>
              </table>
			    <table width="534" border="0">
                  <tr>
                    <td bordercolor="#044A74" bgcolor="#025384"><div align="center"><form action="TESTSUPLOTERIES.php" 	method="post">
		<input name="idccargent" type="hidden" value="'.$data['idccargent'].'">
		<input name="pseudo" type="hidden" value="'.$pseudo.'">
		<input type="submit" class="fondblanc" value="Effacer ce jeu concours de mon compte">
		 </form></div></td>
                  </tr>
                </table><br><br>';
				
 	  } 
    if($limite != 0) {
    echo '<div align="center"><a href="'.$page.'?limite='.$limiteprecedente.'">Page précédente</a></div>';
}
    if($limitesuivante < $total) {
    echo '<div align="center"><a href="'.$page.'?limite='.$limitesuivante.'">Page Suivante</a></div>';
}
}


J'ai testé en faissant (changement en gras):

// on fait une boucle qui va faire un tour pour chaque enregistrement
	while($data = mysql_fetch_array($req)) 
    	{	
        	echo '<table width="534" height="31" border="0">
                <tr>
                  <td width="410" height="25" bordercolor="#044A74" bgcolor="#025384">'.$data['nomconcoursargent'].'</td>
                  <td width="107" bordercolor="#044A74" bgcolor="#025384"><div align="center">'.$data['plusinfo'].'</div></td>
                </tr>
              </table>
			  <table width="534" border="0">
                <tr>
                  <td width="155" height="83" bordercolor="#044A74" bgcolor="#025384">Lots mis en jeu : </td>
                  <td width="354" bordercolor="#044A74" bgcolor="#025384">'.$data['jeuxconcoursargent'].'</td>
                </tr>
              </table>			  
			  <table width="534" border="0">
                <tr>
                  <td width="522" bordercolor="#044A74" bgcolor="#025384"><div align="center">'.$data['lienconcoursargent'].'</div></td>
                </tr>
              </table>
			    <table width="534" border="0">
                  <tr>
                    <td bordercolor="#044A74" bgcolor="#025384"><div align="center"><form action="TESTSUPLOTERIES.php" 	method="post">
		<input name="idccargent" type="hidden" value="'.$data['idccargent'].'">
		<input name="pseudo" type="hidden" value="'.$pseudo.'">
		<input type="submit" class="fondblanc" value="Effacer ce jeu concours de mon compte">
		 </form></div></td>
                  </tr>
                </table><br><br>';
				
 	  } 
	  $pagepre =  if($limite != 0) {
    echo '<div align="center"><a href="'.$page.'?limite='.$limiteprecedente.'">Page précédente</a></div>';
}
<code>$pagesuiv 
= if($limitesuivante < $total) {
echo '<div align="center"><a href="'.$page.'?limite='.$limitesuivante.'">Page Suivante</a></div>';
}
echo '<table width="534" border="0">
<tr>
<td width="265" height="30" bordercolor="#044A74" bgcolor="#025384">'.$pagepre.'</td>
<td width="265" bordercolor="#044A74" bgcolor="#025384">'.$pagesuiv.'</td>
</tr>
</table>';

}</code>

Pourriez vous m'aider svp?

merci
Configuration: Windows XP
Firefox 2.0.0.9

8 réponses

  1. Bonjour,
    Et comme ceci ?
    echo '<div><a href="'.$page.'?limite='.$limiteprecedente.'">Page précédente</a></div>';
    }
    if($limitesuivante < $total)
    {
    echo '<div float="left"><a href="'.$page.'?limite='.$limitesuivante.'">Page Suivante</a></div>';
    
    0
    1. essaies avec
      float="left"
      aussi dans le 1er div
      0
      1. Bonjour,
        eh non toujours pareil ! :-(
        0
        1. Je pense qu'il y a une coquille dans ton code, le
          float="left"
          devrait marcher.
          Essaies en intégrant cette propriété au niveau de ton CSS.
          0
          1. Bonjour,

            Essais avec <div style="float: left;"> et<div style="float: right;">

            ;-)
            0
            1. Bonjour,

              Ca ne marche pas dès qu il y a les <div></div> en les supprimant c'est affiche un a coté de l'autre..mais pas de possibilité de centrer dans ce cas...

              Bref...Sinon je verrai ca plus tard, c est du ponifiolage :) lol

              Bonne journee
              0
              1. Euh ..du pofiniolage plutot :-)
                0