• User Attivo

    errore con css validator

    mettendo questo codice

    [code]
    body {
    scrollbar-face-color: #5b5b5b;
    scrollbar-highlight-color: #000000;
    scrollbar-3dlight-color:;
    scrollbar-darkshadow-color:;
    scrollbar-shadow-color:;
    scrollbar-arrow-color:;
    scrollbar-track-color: #5e5e5e;
    background: url(images/other/background.gif);
    text-align : center;
    }

    #tebella_sfondo {
    background-color : #ffffff;
    margin-right: auto;
    margin-left: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align : left;
    width : 760px;
    height: 500px;
    border: none;
    }

    #tabella_sfondo_2 {
    background-color :;
    margin-right: auto;
    margin-left: auto;
    text-align : left;
    width : 740px;
    height: 500px;
    border: none;
    }
    [code]

    il validator mi da questa serie di errori ma non capisco il perchè

    [code]
    Errors
    URI : file://localhost/C:\Documents and Settings\Alessandro\Desktop\test\test.css
    Line: 2 Context : body
    Property scrollbar-face-color doesn't exist :

    Line: 3 Context : body
    Property scrollbar-highlight-color doesn't exist :

    Line: 4 Context : body
    Property scrollbar-3dlight-color doesn't exist :

    Line: 5 Context : body
    Property scrollbar-darkshadow-color doesn't exist :

    Line: 6 Context : body
    Property scrollbar-shadow-color doesn't exist :

    Line: 7 Context : body
    Property scrollbar-arrow-color doesn't exist :

    Line: 8 Context : body
    Property scrollbar-track-color doesn't exist :

    Warnings
    URI : file://localhost/C:\Documents and Settings\Alessandro\Desktop\test\test.css
    Line : 10 (Level : 1) This property applies to block-level elements. : body
    Line : 14 (Level : 1) You have no color with your background-color :
    Line : 19 (Level : 1) This property applies to block-level elements. :
    Line : 26 (Level : 1) You have no color with your background-color :
    Line : 29 (Level : 1) This property applies to block-level elements. :
    Valid CSS information
    body {
    background : url(images/other/background.gif);
    text-align : center;
    }
    {
    background-color :;
    margin-right : auto;
    margin-left : auto;
    padding-top : 10px;
    padding-bottom : 10px;
    text-align : left;
    width : 760px;
    height : 500px;
    border : none;
    }
    {
    background-color :;
    margin-right : auto;
    margin-left : auto;
    text-align : left;
    width : 740px;
    height : 500px;
    border : none;
    }
    [/code]

    chi sa spiegarmi ? :arrabbiato:


  • User

    Se non sbaglio, devi eliminare i trattini. Mi pare che quelle classi le devi richiamare cosi:

    ScrollbarFaceColor etc etc


  • User Attivo

    Ciao Alive,
    le proprietà legate alle colorazione delel Scrollbars non sono CSS standard, e funzionano solo per IE 🙂 Probabilmente non vengono validate per questo.