Hola!
Estoy pasando mi web de tablas a Divs con CSS y tengo un problema en un while de php.
Éste es mi código actual, el cual muestra una galería de fotos con
5 columnas y 4 filas.
Código PHP:
Ver original<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<?php
$tr=1;
$cuantas = 5;
if($tr/($cuantas+1)==1){echo "</tr><tr>";
$tr=1;
}
?>
<td width="454"><div align="center">
<?php
echo "<table width=9% border=0 align=center cellpadding=0 cellspacing=0 bgcolor=#FFFFFF>";
echo "<tr>";
echo "<td align=center height=10><a href=http://www.miweb.com/photo/?id=".$persona['id']." class=foto><img src=/scripts/thumb.php?src=http://www.miweb.com/fotos/".$persona["foto"]."&h=100&w=100&zc=11&q=100 border=5></a></td>";
echo "</tr>";
echo "</table>";
echo "<br />";
?>
</div></td>
<?php
$tr++;
if($tr/($cuantas+2)==1){echo "</tr>";}
} while ($tr <= $cuantas):
echo "<td height=10></td>";
$tr++;
endwhile;
?>
</tr>
</table>
Como quedaría con DIVS ? Se utiliza la etiqueta UL ? Soy novato en esto y agradecería sus comentarios! Mil gracias desde ya!!