Foros del Web » Creando para Internet » CSS »

Validación: error de análisis sintático

Estas en el tema de Validación: error de análisis sintático en el foro de CSS en Foros del Web. Hola a todos, Espero que me podáis ayudar.... he pasado el validador de CSS a una hoja de estilos, y me da este error y ...
  #1 (permalink)  
Antiguo 28/10/2008, 11:32
 
Fecha de Ingreso: marzo-2004
Ubicación: Sureste
Mensajes: 186
Antigüedad: 22 años, 8 meses
Puntos: 0
Validación: error de análisis sintático

Hola a todos,

Espero que me podáis ayudar....

he pasado el validador de CSS a una hoja de estilos, y me da este error y no sé por qué :S

Error de análisis sintáctico --> .oficina { width: 300px; float: left; margin-top: 15px; margin-left: 50px; border:1px solid #CCCCCC; }

la verdad,... no lo pillo, está todo bien, ¿no?

Está aplicado a una capa <div class="oficina"...>

Me estoy volviendo loca con esto.

Gracias por vuestra ayuda!!
  #2 (permalink)  
Antiguo 28/10/2008, 11:36
Avatar de DragonX
Colaborador
 
Fecha de Ingreso: mayo-2002
Ubicación: Funkyland
Mensajes: 8.433
Antigüedad: 24 años, 5 meses
Puntos: 177
Respuesta: Validación: error de análisis sintático

dejanos el link a tu resultado de validacion como para ver bien de donde viene.
__________________
Desarrollos dosLotos
Calendario Maya, Meditación, Osho
  #3 (permalink)  
Antiguo 28/10/2008, 12:07
 
Fecha de Ingreso: marzo-2004
Ubicación: Sureste
Mensajes: 186
Antigüedad: 22 años, 8 meses
Puntos: 0
Respuesta: Validación: error de análisis sintático

Código PHP:
236       noticias       Error de análisis sintáctico  --> #noticias{ float: left; font-size: 11px; width: 200px;}
441     .producto-a .descripcion-productos     Propiedad no válida : padding auto no es un valor de padding-top : auto
540     
.productos-general a     La propiedad font-weigth no existe : bold
653     oficinas     Error de análisis sintáctico 
--> .oficina { width: 300px; float: left; margin-top: 15px; margin-left: 50px; border:1px solid #CCCCCC; }

Información de CSS válida
* {
border : 0;
margin : 0;
padding : 0;
}
body {
font-family : Arial, Verdana, sans-serif;
font-size : 62.5%;
}
table {
display : block;
margin : auto;
padding : 5px;
}
.
checkbox {
border : 0;
}
#contenido table {
border : 0;
}


#contenido-sin-texto {
background-color : #ffffff;
font-size : 13px;
height : 500px;
}
input {
border : 1px solid #000000;
}
#body-wrap {
margin : auto;
background-color : #fff;
width : 770px;
}
#cabecera {
color : #00ffff;
background-color : #ffffff;
text-align : center;
background-image : url(media/gradiente.png);
}
#contenido {
background-color : #ffffff;
font-size : 13px;
border : 1px solid #cccccc;
}
#contenido p {
padding : 15px;
}
#contenido-control {
background-color : #ffffff;
font-size : 16px;
border : 1px solid #cccccc;
}
#contenido-control p {
padding : 18px;
font-variant : small-caps;
}
#contenido-sector {
background-color : #ffffff;
font-size : 13px;
border : 1px solid #cccccc;
height : 650px;
}
#contenido-sector p {
padding : 15px;
}
#contenido-sector h2 {
background-color : #333333;
color : #ffffff;
text-align : center;
padding : 5px;
text-transform : uppercase;
}
#contenido-noticias {
background-color : #ffffff;
font-size : 13px;
border : 1px solid #cccccc;
}
#contenido-noticias p {
padding : 15px;
}
#contenido-noticias h2 {
background-color : #333333;
color : #ffffff;
text-align : center;
padding : 5px;
text-transform : uppercase;
}
#contenido-contacto {
background-color : #ffffff;
font-size : 13px;
border : 1px solid #cccccc;
}
#contenido-contacto p {
padding : 15px;
}
#contenido-contacto h2 {
background-color : #333333;
color : #ffffff;
text-align : center;
padding : 5px;
text-transform : uppercase;
}
#enlaces {
border : 1px solid #ccc;
}
#especial {
font-size : 0.7em;
text-align : center;
margin-top : 175px;
}
#footer {
background-color : #000000;
color : #fff;
clear : both;
text-align : center;
}
#formulario {
font-size : 13px;
margin-left : 60px;
}
#formulario input {
border : 1px solid #000;
}
#formulario p {
padding : 5px;
}
#formulario textarea {
border : 1px solid #000;
}
#imagen {
width : 567px;
padding-top : 20px;
display : block;
margin : auto;
}
#menu-arriba {
background-color : #fff;
border : 1px solid #ccc;
padding : 10px 5px;
}
#menu-arriba ul, #menu-arriba li {
list-style-type : upper-alpha;
display : inline;
font-size : 14px;
font-weight : bold;
}
#menu-arriba li a {
text-decoration : none;
color : #fff;
padding : 5px 30px;
background-color : #333333;
}
#menu-arriba li a:hover {
background-color : #ddd;
color : #336666;
}
#menu-arriba li a:active {
background-color : #ddd;
color : #336666;
}
#menu-footer {
padding : 3px;
text-align : center;
}
#menu-footer ul, #menu-footer li {
display : inline;
padding : 25px 8px;
text-decoration : underline;
}
#menu-footer li a {
text-decoration : none;
color : #cccccc;
font-size : 11px;
}
#menu-footer li a:hover {
text-decoration : underline;
}
#menu-footer li a:active {
text-decoration : underline;
}
#noticias h4 {
font-size : 14px;
color : #000066;
margin-top : 10px;
}
#noticias h5 {
font-size : 11px;
font-weight : normal;
text-decoration : underline;
margin-top : 5px;
}
.
titulo-noticia {
font-size : 16px;
color : #ffffff;
}
#titulo h1 {
font-family : Arial Black;
color : #0067ff;
font-size : 68px;
}
#titulo-contenido {
border : 1px solid #ccc;
width : 768px;
}
#titulo-contenido h2 {
color : #000044;
background-color : #ffffff;
text-align : center;
font-size : 26px;
padding : 5px;
}
#titulo-contenido h3 {
text-align : center;
font-size : 18px;
color : #000099;
}
a:link.boton-motor {
display : block;
width : 250px;
height : 250px;
border : 1px solid #ffffff;
}
a:hover.boton-motor {
display : block;
border : 1px solid #000000;
}
.
derecha {
text-align : left;
font-size : 0.9em;
font-weight : normal;
}
.
derecha-motor a {
text-align : left;
font-size : 1.1em !important ;
font-weight : bold !important ;
}
.
imagen {
font-size : 14px;
float : right;
display : block;
margin : auto;
}
.
imagen-solar {
font-size : 14px;
float : right;
display : block;
margin : auto;
padding : 8px;
}
.
img {
display : block;
margin : auto;
padding : 15px;
}
.
flash {
z-index : 2;
}
.
imagen-producto {
width : 200px;
height : 140px;
}
.
logo {
height : 50px;
}
.
man {
padding : 10px;
width : 700px;
border : 1px solid #ccc;
margin : 5px;
}
.
mantext {
line-height : 45px;
text-align : center;
text-transform : uppercase;
}
.
mantext a {
text-decoration : none;
font-family : Arial, sans-serif;
font-weight : bold;
font-size : 1.2em;
color : #330066;
}
.
mantext a:hover {
text-decoration : underline;
}
.
mantext a.visited {
color : #330066;
}
.
ruta {
float : left;
text-align : left;
display : block;
}
.
paginado {
text-align : right;
font-size : 11px;
display : block;
float : right;
}
.
producto {
width : 450px;
float : left;
padding : 10px;
text-align : justify;
}
.
producto-a {
width : 210px;
display : block;
float : left;
text-align : center;
background-image : url(media/fondo-producto-grande-ancho.gif);
background-position : center 0%;
background-repeat : no-repeat;
height : 275px;
margin : auto;
margin-left : 35px;
margin-top : 20px;
}
.
producto-a-esp {
width : 210px;
display : block;
float : left;
text-align : center;
margin : auto;
}
.
producto-a .imagenes-logos {
display : block;
margin-top : 5px;
padding-bottom : 10px;
height : 50px;
}
.
producto-a .imagenes-productos {
display : block;
height : 121px;
}
.
imagenes-productos img {
margin-top : 8px;
margin-left : 0;
}
.
imagenes-productos-esp img {
margin-top : 5px;
margin-left : 0;
}
.
imagenes-productos-esp a img {
margin-top : -5px;
margin-left : -4px;
}
.
imagenes-productos a img {
margin-top : -2px;
margin-left : -4px;
}
.
producto-a .descripcion-productos {
display : block;
height : 104px;
font-size : 11px;
}
.
producto-a .descripcion-productos a {
display : block;
font-size : 11px;
margin-top : auto;
margin-bottom : auto;
height : 104px;
}
.
producto-b-esp {
width : 210px;
display : block;
text-align : center;
margin : auto;
}
.
productob {
display : block;
margin : 0 auto;
text-align : center;
}
.
producto-c-esp {
width : 210px;
display : block;
text-align : center;
margin : auto;
float : right;
margin-right : 15px;
}
.
producto-titulo img {
display : block;
margin : auto;
}
.
producto-titulo {
background-color : #ffffff;
text-align : center;
padding : 10px;
background-color : #ccc;
}
.
productos-titulo img {
display : block;
margin : auto;
}
.
productos {
font-size : 11px;
padding-top : 10px;
background-color : #fff;
width : 768px;
}
.
productos ul {
padding : 20px;
margin-left : 20px;
}
.
productos li {
list-
style : none;
margin : 10px;
display : block;
}
.
productos a {
display : block;
color : #000033;
padding : 10px;
font-size : 1.4em;
text-decoration : none;
font-weight : bold;
}
.
productos h3 {
font-size : 1.5em;
color : #000033;
}
.
productos-general {
font-size : 11px;
padding-top : 10px;
background-color : #fff;
width : 768px;
}
.
productos-general ul {
padding : 20px;
margin-left : 20px;
}
.
productos-general li {
list-
style : none;
margin : 10px;
display : block;
}
.
productos-general a {
display : block;
color : #000033;
font-size : 11px;
padding : 10px;
background-color : #cccccc;
font-size : 1.4em;
text-decoration : none;
font-weight : bold;
}
.
productos-general a:hover {
background-color : #333333;
color : #fff;
}
.
productos-general h3 {
font-size : 1.5em;
color : #000033;
}
.
productos-motor {
border-left : 1px solid #ccc;
border-right : 1px solid #ccc;
font-size : 11px;
background-color : #fff;
width : 568px;
float : right;
}
.
texto {
width : 752px;
border : 1px solid #ccc;
padding : 8px;
text-align : justify;
}
.
texto-title {
width : 752px;
height : 70px;
border-bottom : 1px solid #cccccc;
}
.
texto h3 {
padding : 5px;
color : #000066;
}
.
texto h4 {
color : #000033;
font-size : 14px;
padding-top : 5px;
padding-bottom : 2px;
font-variant : small-caps;
}
.
texto h5 {
color : #999999;
font-size : 13px;
padding-top : 2px;
padding-bottom : 5px;
font-variant : small-caps;
}
.
texto ul {
margin-left : 40px;
padding : 5px;
list-
style-position : inside;
}
.
texto li {
padding : 10px;
}
.
texto ol {
list-
style-position : inside;
padding : 15px;
}
.
texto table {
border : 1px solid #ccc;
}
.
texto td {
border : 1px solid #ccc;
padding : 10px;
}
.
texto th {
background-color : #000000;
color : #fff;
padding : 10px;
}
.
datos-arriba {
font-size : 0.8em;
border-top : 1px dashed #999999;
padding : 5px;
margin-top : 10px;
}
.
datos-abajo {
font-size : 0.8em;
border-bottom : 1px dashed #999999;
padding : 5px;
}
.
oficina h3 {
text-align : center;
color : #ffffff;
background-color : #333333;
padding : 5px;
}
.
not {
padding-top : 12px;
padding-bottom : 12px;
border-bottom : 1px solid #999999;
overflow : auto;
}
.
not h4 {
font-size : 16px;
font-variant : small-caps;
}
.
not h5 {
color : #999999;
font-size : 14px;
padding-top : 2px;
padding-bottom : 5px;
font-variant : small-caps;
} 
  #4 (permalink)  
Antiguo 28/10/2008, 12:08
 
Fecha de Ingreso: marzo-2004
Ubicación: Sureste
Mensajes: 186
Antigüedad: 22 años, 8 meses
Puntos: 0
Respuesta: Validación: error de análisis sintático

Perdón peroe s que no me cabían todos los caracteres arriba!!

Gracias!
  #5 (permalink)  
Antiguo 28/10/2008, 12:11
Avatar de ArturoGallegos
Moderador
 
Fecha de Ingreso: febrero-2008
Ubicación: Morelia, México
Mensajes: 6.774
Antigüedad: 18 años, 8 meses
Puntos: 1146
Respuesta: Validación: error de análisis sintático

ami me anda bien salvo colores de primer y segundo plano

Color de primer plano y color de fondo iguales en dos contextos .producto-titulo y #menu-footer li a
  #6 (permalink)  
Antiguo 28/10/2008, 12:28
Avatar de Mikmoro
Colaborador
 
Fecha de Ingreso: octubre-2006
Ubicación: K-pax
Mensajes: 7.228
Antigüedad: 20 años
Puntos: 280
Respuesta: Validación: error de análisis sintático

En estas dos líneas:

441 .producto-a .descripcion-productos Propiedad no válida : padding auto no es un valor de padding-top : auto
540 .productos-general a La propiedad font-weigth no existe : bold

1.- efectivametne padding: auto no existe
2.- tienes escrito weigth en lugar de weight.

Corrige esas dos cosas y vuelve a probar.
__________________
Visita mi nueva web idplus.org
  #7 (permalink)  
Antiguo 03/11/2008, 11:31
 
Fecha de Ingreso: marzo-2004
Ubicación: Sureste
Mensajes: 186
Antigüedad: 22 años, 8 meses
Puntos: 0
Respuesta: Validación: error de análisis sintático

Muchas gracias, ahora sí valida!!!
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 06:11.