Ver Mensaje Individual
  #4 (permalink)  
Antiguo 17/05/2005, 20:22
marcomartinez
 
Fecha de Ingreso: agosto-2004
Mensajes: 95
Antigüedad: 19 años, 8 meses
Puntos: 2
Con imagen


Sin imagen


ahí tu le cambias el estilo ..lo deje como lo tenias...

Código PHP:
<STYLE TYPE="text/css">
.titulo{COLOR: #000000; FONT-SIZE: 12px; FONT-WEIGHT: bold; FONT-FAMILY: Arial,Helvetica,sans-serif;}
.categoria{COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Arial,Helvetica,sans-serif;}
.contenido{BACKGROUND: none; COLOR: #000000; FONT-SIZE: 10px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
A:link    {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
A:active  {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
A:visited {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
A:hover   {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
</STYLE>


<? 
$conn 
mysql_connect("localhost","root","");
mysql_select_db("");
$q mysql_query("SELECT id, imagen, resumen, titulo, categoria FROM articulos WHERE id ORDER BY id DESC LIMIT 2");
while(
$res mysql_fetch_row($q)){
?>

<table bgcolor="#FFFF99" width="400" border="1">

<tr>
<td class="titulo" align="center" colspan="2"><?=$res[3]?></td>
</tr>

<tr>
<? if (!empty($res[1])){?>
<td width="110" height="110">
<a href="javascript:ventanaSecundaria('ver.php?id=<?=$res[0]?>')">
<img src="<?=$res[1];?>" width="110" height="110" align="left" border="0">
</a>
</td>
<?}?>

<td class="contenido" valign="top" align="center"><?=substr($res[2],0,190)?><a href="javascript:ventanaSecundaria ('ver.php?id=<?=$res[0]?>')">(+)</a></td>
</tr>

<tr>
<td class="categoria" align="right" colspan=2>Categoría : <?=$res[4]?></td>
</tr>

</table>

<?}mysql_close($conn);?>
De paso te puse unos ejemplos de CSS ...para que los uses
__________________
Marco de Arica (Chile)