Ver Mensaje Individual
  #9 (permalink)  
Antiguo 12/01/2004, 09:04
Avatar de neofito
neofito
 
Fecha de Ingreso: noviembre-2003
Mensajes: 138
Antigüedad: 20 años, 5 meses
Puntos: 0
A ver el archivo php y el html están en el mismo sitio y la ruta hacia el css está bien puesta y comprobada.

Sobre lo que comenta Josemi, lo que hago en el css es muy simple (para comprobar que funciona correctamente en el css le he dicho que todo lo que hay dentro del body va con la fuente verdana). Os pego el cógido del archivo html y el del php y también el del css así quizás podráis detectar el error que yo no consigo ver:


Archivo muestra_seccion.php
Código PHP:
<?php 
include_once 'constantes.php';
include 
'funciones.php';
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Documento sin t&iacute;tulo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<?php 
open
();
$result = @mysql_query ("SELECT nombre, contenido FROM secciones WHERE id=1");

  if (!
$result) {
      echo(
"<p>Error al seleccionar: " mysql_error() . "</p>");
      exit();
     }
    while (
$row mysql_fetch_array($result))
        {
    
$nombre nl2br($row["nombre"]);
    
    
$contenido nl2br($row["contenido"]);

 include 
'muestra_seccion.htm';
 }

?>
</body>
</html>
Archivo muestra_seccion.htm
Código PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Secci&oacute;n</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<link href="/css/estilo_pagina.css" rel="stylesheet" type="text/css">
</head>

<body>
<table border="20" cellspacing="15" bordercolor="#000000">
  <tr>
    <td>&nbsp;</td>
    <td><?php echo $nombre ?></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><?php echo $contenido ?></td>
  </tr>
</table>
</body>
</html>
Archivo estilo_pagina.css
Código PHP:
body {
    
font-familyVerdanaGenevaArialhelveticasans-serif;
    
font-sizesmall;
}

td {
    
font-familyVerdanaGenevaArialhelveticasans-serif;
}

th {
    
font-familyVerdanaGenevaArialhelveticasans-serif;