Ver Mensaje Individual
  #5 (permalink)  
Antiguo 02/09/2013, 10:47
Avatar de tquezada
tquezada
 
Fecha de Ingreso: febrero-2013
Ubicación: Santiago
Mensajes: 196
Antigüedad: 11 años, 2 meses
Puntos: 8
Respuesta: Repetir tabla horizontalmente

Acá te dejo un ejemplo

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>Documento sin título</title>
  5. </head>
  6. <table width="600" border="1" cellspacing="0" cellpadding="0" align="center">
  7.   <tr>
  8.   <?php
  9.  for ($i = 1; $i < 8; $i++){
  10.  ?>
  11.     <td>
  12.     <table width="400" border="1" align="center" cellpadding="1" cellspacing="1">
  13.   <tr>
  14.     <td colspan="2">Tu tabla</td>
  15.     </tr>
  16.   <tr>
  17.     <td>hola</td>
  18.     <td>mundo</td>
  19.   </tr>
  20.  
  21.     </td>
  22.   <?
  23.  }
  24.  ?>  
  25.   </tr>
  26. </body>
  27. </html>
Saludos
__________________
¿Sabes cuántos programadores hacen falta para cambiar una bombilla? - no, no ¿Cuántos? - Ninguno... es un problema de hardware.