I have the following code whose function is to load an array with a piece of html code that prints an image. Such a code does its job, however when displayed on the screen, the images are printed one below the other as shown below. I need to show them horizontally, for aesthetic and usability purposes.
the code below.
<div id="selector">
<?php
$j = "<table>
<tr>
<td>
<a href='agregar_cliente.html' class='fancybox fancybox.iframe'><img src='imgs/blue.png'></a>
<p>Habitación </p>
</td>
</tr>
</table>";
$array[10] = 1;
for($i=0;$i<5;$i++){
$array[$i]= $j;
}
for($i=0;$i<5;$i++){
echo "$array[$i]";
}
?>
</div>
What should I do to show it horizontally?