Visualizzazione dei risultati da 1 a 8 su 8
  1. #1
    Utente di HTML.it L'avatar di james
    Registrato dal
    Jun 2002
    Messaggi
    1,481

    errore in una riga di css

    Non capisco qual è l'errore in questa sola riga di CSS, mi sapete dire perchè il validate mi fallisce?
    codice:
    table#organigramma { table-layout: fixed; margin-top:20px; width: 98%; border-style:none; border-collapse:separate; border-spacing:1px; }

  2. #2
    presa singolarmente il validatore la da valida
    probilmente ci so problemi a monte o a valle
    ciao
    www.meteowebcam.it
    La migliore raccolta di webcam meteo Italiane

    www.creazionigrafiche.com
    Grafica e siti web d'autore

  3. #3
    Utente di HTML.it L'avatar di james
    Registrato dal
    Jun 2002
    Messaggi
    1,481
    Originariamente inviato da ptransidico
    presa singolarmente il validatore la da valida
    probilmente ci so problemi a monte o a valle
    ciao
    Posto l'intera pagina:

    codice:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title></title>
    <style type="text/css">
    table#organigramma { table-layout: fixed; margin-top:20px; width: 98%; border-style:none; border-collapse:separate; border-spacing:1px; }
    
    table#organigramma tr.org_spacer { background-color:#000; height:2px; padding:0; margin:0; }
    table#organigramma tr.org_spacer td { padding:0; margin:0; height:2px; background-color:#CCC; }
    </style>
    </head>
    
    <body>
    <table id="organigramma" align="center">
    	<tr>
    		<td>Ciao</td>
    	</tr>
    	<tr class="org_spacer">
    		<td></td>
    	</tr>
    </table>
    
    </body>
    </html>

  4. #4
    Utente di HTML.it L'avatar di james
    Registrato dal
    Jun 2002
    Messaggi
    1,481
    a scanso di equivoci posto anche l'errore che mi genera:

    # Line: 3 Context : table#organigramma

    Parse Error - -x-border-x-spacing: 1px;
    # Line: 3 Context : table#organigramma

    Parse error - Unrecognized : -x-border-y-spacing: 1px;
    # Line: 3 Context : table#organigramma

    Parse error - Unrecognized : }

  5. #5
    il css e' valido ma hai dei problmei con il doctype e con la codifica dei caratteri prova a cambiare il doctype e dovrebbe funzionare
    esmpio:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <style type="text/css">
    table#organigramma { table-layout: fixed; margin-top:20px; width: 98%; border-style:none; border-collapse:separate; border-spacing:1px; }
    table#organigramma tr.org_spacer { background-color:#000; height:2px; padding:0; margin:0; }
    table#organigramma tr.org_spacer td { padding:0; margin:0; height:2px; background-color:#CCC; }
    </style>
    </head>

    <body>
    <table id="organigramma">
    <tr>
    <td>Ciao</td>
    </tr>
    <tr class="org_spacer">
    <td>_</td>
    </tr>
    </table>

    </body>
    </html>




    ciao
    www.meteowebcam.it
    La migliore raccolta di webcam meteo Italiane

    www.creazionigrafiche.com
    Grafica e siti web d'autore

  6. #6
    Utente di HTML.it L'avatar di james
    Registrato dal
    Jun 2002
    Messaggi
    1,481
    Originariamente inviato da ptransidico
    il css e' valido ma hai dei problmei con il doctype e con la codifica dei caratteri prova a cambiare il doctype e dovrebbe funzionare
    esmpio:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <style type="text/css">
    table#organigramma { table-layout: fixed; margin-top:20px; width: 98%; border-style:none; border-collapse:separate; border-spacing:1px; }
    table#organigramma tr.org_spacer { background-color:#000; height:2px; padding:0; margin:0; }
    table#organigramma tr.org_spacer td { padding:0; margin:0; height:2px; background-color:#CCC; }
    </style>
    </head>

    <body>
    <table id="organigramma">
    <tr>
    <td>Ciao</td>
    </tr>
    <tr class="org_spacer">
    <td>_</td>
    </tr>
    </table>

    </body>
    </html>




    ciao
    Questa è una delle ultime pagine del sito, se cambio doctype poi alla fine ho un sacco di errori con tutte le altre pagine. Non c'è un modo per far funzionare questo doctype con quella sintassi? Qual è il prob. di incompatibilità?!

  7. #7
    con il doctype transitional non dovresti avere problemi prova cosi:
    <!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" xml:lang="en">
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <style type="text/css">
    table#organigramma { table-layout: fixed; margin-top:20px; width: 98%; border-style:none; border-collapse:separate; border-spacing:1px; }
    table#organigramma tr.org_spacer { background-color:#000; height:2px; padding:0; margin:0; }
    table#organigramma tr.org_spacer td { padding:0; margin:0; height:2px; background-color:#CCC; }
    </style>
    </head>

    <body>
    <table id="organigramma">
    <tr>
    <td>Ciao</td>
    </tr>
    <tr class="org_spacer">
    <td>_</td>
    </tr>
    </table>

    </body>
    </html>

    ciao
    www.meteowebcam.it
    La migliore raccolta di webcam meteo Italiane

    www.creazionigrafiche.com
    Grafica e siti web d'autore

  8. #8
    Utente di HTML.it L'avatar di james
    Registrato dal
    Jun 2002
    Messaggi
    1,481
    Originariamente inviato da ptransidico
    con il doctype transitional non dovresti avere problemi prova cosi:
    <!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" xml:lang="en">
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <style type="text/css">
    table#organigramma { table-layout: fixed; margin-top:20px; width: 98%; border-style:none; border-collapse:separate; border-spacing:1px; }
    table#organigramma tr.org_spacer { background-color:#000; height:2px; padding:0; margin:0; }
    table#organigramma tr.org_spacer td { padding:0; margin:0; height:2px; background-color:#CCC; }
    </style>
    </head>

    <body>
    <table id="organigramma">
    <tr>
    <td>Ciao</td>
    </tr>
    <tr class="org_spacer">
    <td>_</td>
    </tr>
    </table>

    </body>
    </html>

    ciao

    me lo fallisce lo stesso, posto l'errore:
    Errors
    URI : file://localhost/TextArea

    * Line: 3 Context : table#organigramma

    Parse Error - -x-border-x-spacing: 1px;
    * Line: 3 Context : table#organigramma

    Parse error - Unrecognized : -x-border-y-spacing: 1px;
    * Line: 3 Context : table#organigramma

    Parse error - Unrecognized : }

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.