Tema: Validar CSS
Ver Mensaje Individual
  #5 (permalink)  
Antiguo 11/03/2009, 01:48
reivaj01
 
Fecha de Ingreso: abril-2008
Mensajes: 93
Antigüedad: 16 años
Puntos: 10
Respuesta: Validar CSS

Lo que pregunto, es lo que dice coljung, no obstante, pido perdón, y siento no haberme explicado bien, pero la verdad es que esto es un poco lioso. Voy a intentarlo otra vez con un poco más de detalle.

El código de Adsense es un conjunto de líneas que "según google" tiene que insertarse en la página tal cual, sin modificar nada.

El código, más o menos es así :


<link rel="s tylesheet" type="t ext/css" href="h ttp://www . google.com/cse/api/branding.css"media="screen" />
<script type="text/javascript"><!--
google_ad_client = "pub-24X25X2X88X4287X";
/* 200x200, creado 9/03/09 */
google_ad_slot = "09X124X79X";
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type="text/javascript"
src="h ttp://pagead2 . googlesyndication.com/pagead/show_ads.js">
</script>



Si coloco este fragmento de código dentro del body, al intentar validar el XHTML con el W3C, aparece un error acerca de la referencia a la hoja de estilo desde ese punto.


Así pues quito la primera línea

<link rel="stylesheet" type="text/css" href="h ttp://www . google.com/cse/api/branding.css" media="screen" />

y la envío a la sección head. Así, la validación XHTML se produce sin problemas.

Al tratar de validar el CSS, obtengo un error:

URI : h t t p : / / w w w . g o o g l e . c o m / c s e / a p i / b r a n d i n g . c s s
8 .cse-branding-bottom, .cse-branding-right La propiedad zoom no existe : 1


y varias Advertencias:

URI : h t t p : / / w w w . g o o g l e . c o m /c s e / a p i / b r a n d i n g . c s s
29 .cse-branding-bottom .cse-branding-text In (x)HTML+CSS, floated elements need to have a width declared. Only elements with an intrinsic width (html, img, input, textarea, select, or object) are not affected
29 .cse-branding-bottom .cse-branding-logo In (x)HTML+CSS, floated elements need to have a width declared. Only elements with an intrinsic width (html, img, input, textarea, select, or object) are not affected
41 .cse-branding-right .cse-branding-form In (x)HTML+CSS, floated elements need to have a width declared. Only elements with an intrinsic width (html, img, input, textarea, select, or object) are not affected
49 .cse-branding-right .cse-branding-form In (x)HTML+CSS, floated elements need to have a width declared. Only elements with an intrinsic width (html, img, input, textarea, select, or object) are not affected


Así, tengo dos opciones, o dejarlo sin validar, o como decía en mi anterior mensaje, coger la hoja de google y retocarla localmente en mi servidor para que valide correctamente, con el riesgo de que Google decida que eso no es válido, y me penalice.

¿Alguien tiene experiencia al respecto?


Aaaaaaaaaaaadios

Javi