Foros del Web » Creando para Internet » HTML »

Error con validación CSS

Estas en el tema de Error con validación CSS en el foro de HTML en Foros del Web. Hola a todos estoy intentando validar una web y el css me está dando un error que no conoce, he mirado por todas partes y ...
  #1 (permalink)  
Antiguo 30/08/2010, 08:14
 
Fecha de Ingreso: marzo-2009
Ubicación: España
Mensajes: 371
Antigüedad: 15 años
Puntos: 5
Error con validación CSS

Hola a todos estoy intentando validar una web y el css me está dando un error que no conoce, he mirado por todas partes y no doy con el problema, el code es pequeño y no veo nada raro, os dejo aquí el code a ver si alguno me puede ayudar por favor.

El error css dice que está en este fichero pero me dice esto:

Error desconocido org.w3c.www.http.HttpInvalidValueException: Invalid content type.

Código PHP:
<?php 

if (extension_loaded('zlib') && !ini_get('zlib.output_compression')) @ob_start('ob_gzhandler');
header('Content-type: text/css; charset: UTF-8');
header('Expires: ' gmdate('D, d M Y H:i:s'time() + 86400) . ' GMT');

define('DS'DIRECTORY_SEPARATOR);
define('PATH_ROOT'dirname(__FILE__) . DS);

/* ie browser */
$is_ie7 strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'msie 7') !== false;    
$is_ie6 strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'msie 6') !== false;

/* general styling */
include(PATH_ROOT 'styles/style.css');

/* basic-h styling */
include(PATH_ROOT 'styles/basic-h/style.css');

include(
PATH_ROOT 'styles/basic-h/black/style.css');

if (
$is_ie6 && !$is_ie7) include(PATH_ROOT 'styles/basic-h/ie6hacks.css');

/* basic-v styling */
include(PATH_ROOT 'styles/basic-v/style.css');

include(
PATH_ROOT 'styles/basic-v/black/style.css');

/* blank-h styling */
include(PATH_ROOT 'styles/blank-h/style.css');

include(
PATH_ROOT 'styles/blank-h/black/style.css');

/* blank-v styling */
include(PATH_ROOT 'styles/blank-v/style.css');

include(
PATH_ROOT 'styles/blank-v/black/style.css');

if (
$is_ie6 && !$is_ie7) include(PATH_ROOT 'styles/blank-v/ie6hacks.css');

/* default-h styling */
include(PATH_ROOT 'styles/default-h/style.css');

include(
PATH_ROOT 'styles/default-h/black/style.css');

/* default-v styling */
include(PATH_ROOT 'styles/default-v/style.css');

include(
PATH_ROOT 'styles/default-v/black/style.css');

if (
$is_ie6 && !$is_ie7) include(PATH_ROOT 'styles/default-v/ie6hacks.css');

?>
Espero vuestra ayuda, un saludo.
  #2 (permalink)  
Antiguo 30/08/2010, 16:17
 
Fecha de Ingreso: junio-2008
Mensajes: 10
Antigüedad: 15 años, 9 meses
Puntos: 0
Respuesta: Error con validación CSS

tienes que cambiar esta linea

header('Content-type: text/css; charset: UTF-8');

por esta

header ('Content-Type: text / css; charset = UTF-8');
  #3 (permalink)  
Antiguo 31/08/2010, 02:14
 
Fecha de Ingreso: marzo-2009
Ubicación: España
Mensajes: 371
Antigüedad: 15 años
Puntos: 5
Respuesta: Error con validación CSS

Muchísimas gracias, era eso, ya está solucionado.

Un saludo.

Etiquetas: css, validar
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 17:48.