Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/06/2012, 12:15
ivan_pala21
 
Fecha de Ingreso: abril-2011
Ubicación: barcelona
Mensajes: 127
Antigüedad: 13 años
Puntos: 2
repetir región

Muy buenas

estoy intentando repetir una tabla en la web hasta aquí todo bien se repite con los registro de la base de datos, el problema viene cuando inserto un div dentro de la tabla con una imagen de fondo este div no se me repite solo se ve en el primer registro es una imagen de un marco para que quede encima de las imágenes que deben repetirse, pero no hay manera.

este es el código:

Código HTML:
Ver original
  1. <?php
  2.  
  3.  $cuantos=0;
  4.  do{
  5.  if ($cuantos == 0){
  6.  
  7.  ?>
  8.   <table width="80%" height="200"  border="0" align="center" bgcolor="#FFFFFF" >
  9.  
  10.  
  11.       <tr>
  12.         <?php
  13.  }
  14.  $cuantos ++;
  15.  ?>
  16.    
  17.      
  18.         <td width="49%" height="189" align="center" valign="middle"    >
  19.        
  20.         <div id="marcofoto" ></div>
  21.         <img src="imagenes/fotosadopciones/<?php echo $row_adopciones['foto']; ?>" width="195" height="163" alt="perros para adoptar"   /></td>
  22.        
  23.        
  24.         <td width="51%" align="left" valign="middle"><table width="131%" height="187"  border="0" >
  25.             <tr>
  26.         <td width="2%" height="137" valign="top"></td>
  27.        
  28.         <td width="1%" bgcolor="#751616"></td>
  29.        
  30.         <td width="5%" align="center" valign="top">&nbsp;</td>
  31.        
  32.         <td width="91%" align="left" valign="top">
  33.        
  34.            
  35.           <strong style="color:#754E42; font-family:Arial, Helvetica, sans-serif;">
  36.           Raza:</strong> <?php echo $row_adopciones['raza']; ?>
  37.            
  38.          <strong style="color:#754E42; font-family:Arial, Helvetica, sans-serif;">
  39.          <br />
  40.          Años:</strong> <?php echo $row_adopciones['edad']; ?><strong style="color:#754E42; font-family:Arial, Helvetica, sans-serif;"><br />
  41.          Sexo:</strong> <?php echo $row_adopciones['sexo']; ?>
  42.  
  43.             <br />
  44.             <br />
  45.  
  46.           <strong style="color:#754E42; font-family:Arial, Helvetica, sans-serif;">Observaciones:</strong>
  47.           <br />
  48.           <?php echo $row_adopciones['observaciones']; ?>
  49.          
  50.           <br />
  51.           <br />
  52.           <strong style="color:#754E42; font-family:Arial, Helvetica, sans-serif;">Ingreso:</strong><?php echo $row_adopciones['fecha']; ?>
  53.          
  54.           </td>
  55.       </tr>
  56.     </table>
  57.         </td>
  58.        
  59.    <?php  
  60.  //este numero del if de la variable cuantos es el numero de filas que queremos
  61.   if ($cuantos == 1){
  62.   $cuantos =0;
  63.  ?>
  64.       </tr>
  65.      
  66.      
  67.     </table>
  68.    
  69.     <hr align="right" width="90%" color="#751616"/>
  70.      <?php
  71.   }
  72.   ?>
  73.    
  74.     <?php } while ($row_adopciones = mysql_fetch_assoc($adopciones)); ?>

aquí el css:
Código CSS:
Ver original
  1. #marcofoto {
  2.     background-image: url(imagenes/marcfotos.png);
  3.     background-repeat: no-repeat;
  4.     position: absolute;
  5.     left: 66px;
  6.     top: 70px;
  7.     width: 220px;
  8.     height: 200px;
  9. }