Ver Mensaje Individual
  #12 (permalink)  
Antiguo 21/11/2008, 11:10
Avatar de Mikmoro
Mikmoro
Colaborador
 
Fecha de Ingreso: octubre-2006
Ubicación: K-pax
Mensajes: 7.228
Antigüedad: 17 años, 6 meses
Puntos: 280
Respuesta: [URGENTE - NO ES MI SEMANA] PROBLEMA OTRA VEZ EN IE y PHP ?

Para cada producto tu generas este código:

Cita:
<table width="138" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="138" height="159" valign="top">
<table width="127" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="96%" height="64">
<table width="127" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="127"><div align="center"><a href="detalle_prod.php?IDProducto=128"><iframe src ="img_modc.php?IDProducto=128" width="130" height="195" scrolling="no" frameborder="0" id="img" name="img"> </iframe></a></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="20" valign="top"><div align="center" class="nombre_prod">BEACH</div>
</td>
</tr>
</table>
Y en realidad te basta con este:

Cita:
<div class="producto">
<div class="imagen">
<a href="detalle_prod.php?IDProducto=128">
<iframe src="img_modc.php?IDProducto=128" width="130" height="195" scrolling="no" frameborder="0" id="img" name="img">
</iframe>
</a>
</div>
<div class="nombre_prod">BEACH</div>
</div>
añadiendo a la css este selector:

Cita:
.producto {width: 137px;
text-align: center;
float: left;
}
Así te quedan 5 productos por fila en todos los navegadores.

Yo no te puedo ayudar mucho en qué código PHP debes poner para generar ese html, pero si tú sabes hacerlo, te va a ir mucho mejor.
__________________
Visita mi nueva web idplus.org