Foros del Web » Creando para Internet » HTML »

Attribute en background

Estas en el tema de Attribute en background en el foro de HTML en Foros del Web. Estoy intentando pasar el test del Validator W3 y tengo este problema, Error Line 167 column 60: there is no attribute "BACKGROUND". ...align="left" valign="top" background="imatges_index/presentacio_r9_c3.gif"><f ...
  #1 (permalink)  
Antiguo 24/04/2006, 02:20
 
Fecha de Ingreso: marzo-2006
Mensajes: 3
Antigüedad: 18 años
Puntos: 0
Attribute en background

Estoy intentando pasar el test del Validator W3 y tengo este problema,

Error Line 167 column 60: there is no attribute "BACKGROUND".
...align="left" valign="top" background="imatges_index/presentacio_r9_c3.gif"><f
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.


¿Como puedo solucionarlo? Ya he puesto la imagen en un CSS pero ¿como puedo poner el Attribute? ¿Tengo que ponerlo aquí dentro?

.unnamed1 {
background-image: url(../imatges_index/presentacio_r9_c3.gif);
}


Espero vuestra ayuda ya que estoy un pelin desesperadaaaaaaaaaaaa.

Gracias
  #2 (permalink)  
Antiguo 24/04/2006, 17:37
Avatar de causita  
Fecha de Ingreso: mayo-2002
Ubicación: Lima-Perú
Mensajes: 2.043
Antigüedad: 21 años, 11 meses
Puntos: 8
Cita:
imatges_index/presentacio_r9_c3.gif"
es imaTges o db ser images? creo q eso es
__________________
|| no hay pregunta tonta....lo q hay son tontos q no preguntan || d-.-b

El Causita
  #3 (permalink)  
Antiguo 24/04/2006, 17:46
Avatar de caricatos
Moderador
 
Fecha de Ingreso: abril-2002
Ubicación: Torremolinos (Málaga)
Mensajes: 19.607
Antigüedad: 22 años
Puntos: 1284
Hola:

Por lo que veo, debes tener el atributo class="unnamed1"...

No estoy seguro de que es lo que quieres...

Saludos
__________________
Por favor:
No hagan preguntas de temas de foros en mensajes privados... no las respondo
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 07:20.