Visualizzazione dei risultati da 1 a 9 su 9
  1. #1

    errore nel background nel td

    ciao, ho questo errore dal w3c:







    codice:
       1.   Error  Line 83, Column 36: there is no attribute "background".
    
                  <td align="left" background="http://www.darioverardo.it/immagini/layout/
    
          ✉
    
          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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.


    come posso risolverlo?
    ciao
    e grazie

  2. #2
    Lo togli !

    e usi i css ...

  3. #3
    Basta leggere.

    Error Line 83, Column 36: there is no attribute "background".
    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.
    Fai quello che ti dice di fare il validatore, cioè togliere l'attributo non supportato nella DTD, nel tuo caso background, e gia che ci sei dovresti togliere pure align. Tutte le formattazioni vanno inserite nei fogli di stile.

  4. #4
    ... poi dopo che lo hai tolto ti dira la stessa cosa anche su align="left e via cosi

  5. #5
    certo. di solito è il grafico che fa queste cose.

    cmq ho risolto mettendo un
    style="background-image: url();"


    grazie ciao

  6. #6
    non mi ha dato problemi con align

    ciao

  7. #7
    non mi ha dato problemi con align
    strano

    DTD ?

  8. #8
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">


    non è corretto?

  9. #9
    Continuo a trovarlo strano, probabilmente perchè align riguarda una cella... mah

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.