COMO EU ARRUMO?
index.php
<div id="divmeio"> <?php if(@$_POST){ $sql = mysql_query("SELECT * FROM anuncios WHERE descricao LIKE '%".$_POST["query"]."%' ORDER BY ID DESC"); }else{ if(empty($_GET["categoria"])){ $sql = mysql_query("SELECT * FROM anuncios WHERE status = 'Ativo' AND ID ORDER BY RAND() LIMIT 9"); }else{ $sql = mysql_query("SELECT * FROM anuncios WHERE categoria = '".strip_tags($_GET["categoria"])."' AND status = 'Ativo' ORDER BY nome ASC"); } } if(mysql_num_rows($sql) == false){ echo '<div><strong>Nenhum anúncio encontrado.</strong></div>'; }else{ while($ln = mysql_fetch_object($sql)){ ?> <table width="240" height="100" style="font-size: 12px; float:left; margin-left:10px; margin-right:10px;" border="0"> <tr> <td valign="top"><a href="pagina/ver_anuncio.php?id=<?php echo $ln->ID; ?>" OnCLick="contarCliques(<?php echo $ln->ID; ?>);" style="text-decoration:none;"><img style="border:3px solid #CCC; width:230px; height:195px; margin-top:10px; border-radius:3px;" src="uploads/<?php echo $ln->thumb; ?>" width="210" height="190" /></a> </td> </tr> <tr> <td height="30"><div align="left" style="margin:5px; color:#333; font-size:16px;"><strong style="text-transform:uppercase; font-family:'Trebuchet MS', Arial, Helvetica, sans-serif; width:auto; height:auto;"><?php echo $ln->empresa; ?></strong><br> <!--categoria--> </div> </td> </tr> <tr> <td height="20"><div align="left" style="margin:5px; color:#333; font-size:13px;">Cidade: <strong style="text-transform:uppercase; font-family:'Trebuchet MS', Arial, Helvetica, sans-serif; width:auto; height:auto; margin-bottom:10px;"><?php echo $ln->cidade; ?></strong> </td> </tr> <tr> <td height="27"><div style="margin:5px; word-wrap:break-word; color:#333; font-size:10px; width:auto; height:15px; text-transform:lowercase; font-family:Tahoma, Geneva, sans-serif;"><?php echo truncate(strip_tags($ln->descricao), 100); ?>...</div></td> </tr><br> <tr> <td style="border-bottom-style:solid; padding-top:15px; padding-bottom:5px; color:#999;"> </td> </tr> </table> <p style="float:left; display:; position:static; margin-top:auto;"> <?php } ?> <?php } ?> </p> </div>
istillo.css
#divmeio{ margin-right:5px; border-radius:1px; border:2px solid #CCC; width:810px; height:auto;