Bonsoir à tous,
J'ai un léger problème avec mes <table> dans mon code html / php.
Je cherche a afficher 3 ou 4 <td> contenant une image, un nom d'artiste et un genre, sur une même ligne.
J'ai le code suivant :
Le problème étant que le 1er artiste s'affiche en haut a gauche du tableau (comme prévu), mais un table semble se créer a chaque autre artiste, créant un décalage en "escalier" vers le sud-est.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 <table width="72%" align="left" STYLE="margin-top:8px;"> <table width="215" align="left"> <tr valign="top"> <td width="90"> <img src="<?php echo $tab['IMAGE']; ?>"> </a> </td> <td width="125"> <b><?php echo $tab['NOM']?></b> <br> <?php echo $tab['GENRE'];?> </td> <td width="90"> <?php } echo "$i artistes trouvés."; ?> </tr> </td> </table> </table>
Je pense que je gère mal l'affichage.
Partager