scroll bar en resultado mysql

From: Date: Thu, 01 Aug 2013 00:10:15 +0000
Subject: scroll bar en resultado mysql
Groups: php.general.es 
Request: Send a blank email to general-es+get-65562@lists.php.net to get a copy of this message
gente muy buenas noches, me estoy volviendo loco estaba reformando un carro de compras que tenia echo un compañero pero le quiero poner un scroll y realmente me estoy volviendo loco, el pedazo de codigo que muestra los productos es este: <table width="800" heigh="600" align="center" cellpadding="5" cellspacing="0" style="border: 1px solid #000000;"> <tr valign="middle" bordercolor="#FFFFFF" bgcolor="#DFDFDF" class="catalogo"> <td width="170"><strong>Producto</strong></td> <td width="77" align="center"><strong>Stock</strong></td> <td width="77" align="center"><strong>Precio</strong></td> <td width="77" align="center"><strong>categoria</strong></td> <td width="25" align="right"><a href="vercarrito.php?<?php echo SID ?>" title="Ver el contenido del carrito"><img src="imagenes/vercarrito.gif" width="25" height="21" border="0"></a></td> </tr> <?php //mostramos todos nuestros artículos, viendo si han sido agregados o no a nuestro carro de compra while($row=mysql_fetch_assoc($qry)){ ?> <tr valign="middle" class="catalogo"> <td bgcolor="#FAFAFA" style="border: 1px solid #FFFFFF;"><?php echo $row['producto'] ?></td> <td align="center"><?php echo $row['cantidad'] ?></td> <td bgcolor="#FAFAFA" style="border: 1px solid #FFFFFF;"align="center"><?php echo $row['precio'] ?></td> <td align="center"><?php echo $row['categoria'] ?></td> <td align="center"> <?php if(!$carro || !isset($carro[md5($row['id'])]['identificador']) || $carro[md5($row['id'])]['identificador']!=md5($row['id'])){ ?><a href="agregacar.php?<?php echo SID ?>&id=<?php echo $row['id']; ?>"><img src="imagenes/productonoagregado.gif" border="0" title="Agregar al Carrito"></a><?php } else {?><a href="borracar.php?<?php echo SID ?>&id=<?php echo $row['id']; ?>"><img src="imagenes/productoagregado.gif" border="0" title="Quitar del Carrito"></a><?php } ?></td> </tr><?php } ?> </table> intente ponerlo dentro de divs: div.scrollbar { height: 100px; overflow: auto; border: solid 1px #000; padding: 5px; } </style> </head> <body> <div class="scrollbar"> aca dentro</div> </body> pero no funciona alguien podria ayudarme?. Un millon de gracias

« previous php.general.es (#65562) next »