Visualizzazione dei risultati da 1 a 10 su 10
  1. #1
    Utente di HTML.it
    Registrato dal
    Feb 2002
    Messaggi
    1,202

    doctype... dove sbaglio?

    Utilizzo questo doctype:
    codice:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//IT" 
    http://www.w3c.org/TR/html4/loose.dtd>
    Ma nella validazione mi segnala un errore che non comprendo...
    Debian GNU/Linux sid
    Publishing a theory should not be the end of one's conversation with the universe, but the beginning. (Eric S. Raymond)
    Kernel 2.6.14-ck1

  2. #2
    Utente di HTML.it L'avatar di antos
    Registrato dal
    Feb 2001
    Messaggi
    3,581
    penso che il problema sia quell'IT alla fine sostituiscilo con EN, per sicurezza dai anche un occhiata qui http://pro.html.it/articoli/id_312/i...pag_5/pag.html

  3. #3
    Utente di HTML.it
    Registrato dal
    Feb 2002
    Messaggi
    1,202
    Anche mettendo EN l'errore persiste... :master:
    Debian GNU/Linux sid
    Publishing a theory should not be the end of one's conversation with the universe, but the beginning. (Eric S. Raymond)
    Kernel 2.6.14-ck1

  4. #4
    Utente di HTML.it L'avatar di antos
    Registrato dal
    Feb 2001
    Messaggi
    3,581
    tu hai scritto così:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//IT" http://www.w3c.org/TR/html4/loose.dtd>

    e invece devi scrivere cosi:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

  5. #5
    Utente di HTML.it L'avatar di Francis87
    Registrato dal
    Jun 2003
    Messaggi
    5,970
    Originariamente inviato da antos
    tu hai scritto così:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//IT" http://www.w3c.org/TR/html4/loose.dtd>

    e invece devi scrivere cosi:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    ecco dove stava il problema! e io ke non capivo.............. ci van sempre le virgolette là!
    Heaven's closed. Hell sold out.

    Linux 2.6.26-2-amd64
    Debian squeeze

  6. #6
    Utente di HTML.it
    Registrato dal
    Feb 2002
    Messaggi
    1,202
    Grazie, ora il doctype è risolto.
    Mi rimane un errore che non capisco, perchè BACKGROUND non è un parametro valido di <table>?

    Debian GNU/Linux sid
    Publishing a theory should not be the end of one's conversation with the universe, but the beginning. (Eric S. Raymond)
    Kernel 2.6.14-ck1

  7. #7
    Utente di HTML.it L'avatar di Francis87
    Registrato dal
    Jun 2003
    Messaggi
    5,970
    Originariamente inviato da Kamui
    Grazie, ora il doctype è risolto.
    Mi rimane un errore che non capisco, perchè BACKGROUND non è un parametro valido di <table>?

    gestiscilo dal css

    table
    {
    background-image: url(im.gif);
    background-color: #444ff2;
    /* ... */
    }
    Heaven's closed. Hell sold out.

    Linux 2.6.26-2-amd64
    Debian squeeze

  8. #8
    Utente di HTML.it
    Registrato dal
    Feb 2002
    Messaggi
    1,202
    azz

    e poi come lo richiamo per la tabella specifica?
    Debian GNU/Linux sid
    Publishing a theory should not be the end of one's conversation with the universe, but the beginning. (Eric S. Raymond)
    Kernel 2.6.14-ck1

  9. #9
    Utente di HTML.it L'avatar di antos
    Registrato dal
    Feb 2001
    Messaggi
    3,581
    puoi usare un identificatore per la tabella o una classe
    cioè
    #idtable{
    ...
    }
    .nomeclasse{
    ...
    }
    <table id="idtable">
    o
    <table class="nomeclasse">

    nota che l'id è univoco la classe invece la puoia applicare a + elementi

  10. #10
    Utente di HTML.it
    Registrato dal
    Feb 2002
    Messaggi
    1,202
    Come si sono complicati i CSS in questi ultimi mesi
    Alla fine mi è bastato mettere
    codice:
    <table width="760" align="center" style="background: url(immagine.jpg)">
    e...



    :metallica :metallica
    Debian GNU/Linux sid
    Publishing a theory should not be the end of one's conversation with the universe, but the beginning. (Eric S. Raymond)
    Kernel 2.6.14-ck1

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.