Partage
  • Partager sur Facebook
  • Partager sur Twitter

Css probleme

    28 septembre 2006 à 13:55:16

    Bonjour

    voila j'ai un petit souci je me suis lancée dans le css il y a quelques jours, j'ai suivit un petit tutorial fin de modifier le SubSilver d'un forum phpbb car je voudrais changer ses couleurs.

    Je pensais avoir fait correctement le css mais j'ai du me tromper, c'est meme casiment sur... car ce que j'ai en résultat sur ma page forum c'est une page noire....

    Est-ce que quelqu'un aurait la bonté de corriger le css ?

    Je m'excuse d'avance si il y a des fautes partout ... mais je débute..


    voici le css:



    /* CSS Document */
    /* General page style. The scroll bar colours only visible in IE5.5+ */
    body {
     background-color: #034C5B;
    scrollbar-face-color:#034C5B;
    scrollbar-highlight-color:#058EAB;
    scrollbar-3dlight-color:#01242C;
    scrollbar-darkshadow-color:#034C5B;
    scrollbar-shadow-color:#01242C;
    scrollbar-arrow-color:#058EAB;
    scrollbar-track-color:#4B96CD;

    }

    /* General font families for common tags */
    font,th,td,p { font-family: Verdana, Arial, helvetice, sans-serif }
    a:link,a:active,a:visited { color :#006699; }
    a:hover { text-decoration: underline; color :#006699; }
    hr { height: 0px; border:#006699 0px; border-top-width: 1px ;}

    /* This is the border line & background colour round the entire page */
    2 .bodyline { background-color:#034C5B;
    3 border: 1px; #C8F3FD; }

    /* This is the outline round the main forum tables */
    8.forumline { background-color: #C8F3FD;
    4 border: 2px; color :#068BAC ; }

    /* Main table cell colours and backgrounds */
    11 td.row1 { background-color: #9EC7E4 ; }
    12 td.row2 { background-color: #B9C7EC ; }
    td.row3 { background-color: #B9C7EC; }

    /*This is for the table cell above the Topics, Post & Last posts on the index.php page
    By default this is the fading out gradiated silver background.
    However, you could replace this with a bitmap specific for each forum*/

    td.rowpic {
     background-color: #A0BBC1;
    background-image: url(templates/subSilver/images/cellpic2.jpg);
    background-repeat: repeat-y };

    /* Header cells - the blue and silver gradient backgrounds */
    th {
    color:#034C5B; font-size: 11px; font-weight : bold;
    background-color:#034C5B; height: 25px;
     background-image: url(templates/subSilver/images/cellpicnono.jpg);
    td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom {
    background-image: url(templates/subSilver/images/cellpicnono2.jpg);
    background-color:#034C5B; border:#A0BBC; border-style: solid; height: 28px;
    }

    /*Setting additional nice inner borders for the main table cells. The names indicate which sides the border will be on. Don't worry if you don't understand this, just ignore it :-)*/
    td.cat,td.catHead,td.catBottom {
    height: 29px;
    border-width: 0px 0px 0px 0px;
    }
    th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,
    th.thBottom,th.thCornerL,th.thCornerR {
    font-weight: bold;
    border:"#C8F3FD"; border-style: solid; height: 28px;
    }
    td.row3Right,td.spaceRow {
    background-color:#5E8693; border:#C8F3FD; border-style: solid;
    }

    th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; }
    th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; }
    th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; }
    th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; }
    th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; }
    th.thTop { border-width: 1px 0px 0px 0px; }
    th.thCornerL { border-width: 1px 0px 0px 1px; }
    th.thCornerR { border-width: 1px 1px 0px 0px; }

    /* The largest text used in the index page title and toptic title etc. */
    .maintitle {
    font-weight: bold; font-size: 22px; font-family: Trebuchet MS;
    text-decoration: none; line-height : 120%; color :#7ACDDE ;
    }

    /* General text */
    .gen { font-size :12px; }
    .genmed { font-size : 11px; }
    .gensmall { font-size : 10px; }
    .gen,.genmed,.gensmall { color : #FFFFFF; }
    a.gen,a.genmed,a.gensmall { color: #FFFFFF; text-decoration: none; }
    a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #FFFFFF; text-decoration: underline; }

    /* The register, login, search etc links at the top of the page */
    .mainmenu { font-size : 11px; color : #FFFFFF }
    a.mainmenu { text-decoration: none; color : #FFFFFF; }
    a.mainmenu:hover{ text-decoration: underline; color : #FFFFFF; }

    /* Forum category titles */
    .cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color :#006699; }
    a.cattitle { text-decoration: none; color : #006699; }
    a.cattitle:hover{ text-decoration: underline; }

    /* Forum title: Text and link to the forums used in: index.php */
    .forumlink { font-weight: bold; font-size: 12px; color : #7BD1EA; }
    a.forumlink { text-decoration: none; color : #7BD1EA; }
    a.forumlink:hover{ text-decoration: underline; color :#7BD1EA; }

    /* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */
    .nav { font-weight: bold; font-size: 11px; color : #7BD1EA; }
    a.nav { text-decoration: none; color : #7BD1EA; }
    a.nav:hover { text-decoration: underline; }

    /* titles for the topics: could specify viewed link colour too */
    .topictitle,h1,h2 { font-weight: bold; font-size: 11px; color : #74BAED; }
    a.topictitle:link { text-decoration: none; color : #74BAED; }
    a.topictitle:visited { text-decoration: none; color : #74BAED; }
    a.topictitle:hover { text-decoration: underline; color : #74BAED; }

    /* Name of poster in viewmsg.php and viewtopic.php and other places */
    .name { font-size : 11px; color :#FFFFFF ;}

    /* Location, number of posts, post date etc */
    .postdetails { font-size : 10px; color : #FFFFFF; }


    /* The content of the posts (body of text) */
    .postbody { font-size : 12px; line-height: 18px}
    a.postlink:link { text-decoration: none; color : #FFFFFF }
    a.postlink:visited { text-decoration: none; color : #FFFFFF; }
    a.postlink:hover { text-decoration: underline; color :#FFFFFF;}

    /* Quote & Code blocks */
    .code {
    font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #80DCE1;
    background-color: #5E8693; border: #ffffff; border-style: solid;
    border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
    }

    .quote {
    font-family: Courier, 'Courier New', sans-serif;; font-size: 11px; color: #80DCE1; line-height: 125%;
    background-color: #5E8693; border: #ffffff; border-style: solid;
    border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
    }

    /* Copyright and bottom info */
    .copyright { font-size: 10px; font-family: Verdana, Arial, helvetice, sans-serif; color: #000000; letter-spacing: -1px;}
    a.copyright { color: #000000; text-decoration: none;}
    a.copyright:hover { color: #cc0000; text-decoration: underline;}

    * Form elements */
    input,textarea, select {
    color : #009797;
    font: normal 11px Verdana, Arial, helvetice, sans-serif;
    border-color : #009797;
    }

    /* The text input fields background colour */
    input.post, textarea.post, select {
    background-color : #034C5B;
    }

    input { text-indent : 2px; }


    /* The buttons used for bbCode styling in message post */
    input.button {
    background-color : #FFFFFF;
    color : #009797;
    font-size: 11px; font-family: Verdana, Arial, helvetice, sans-serif;
    }

    /* The main submit button option */
    input.mainoption {
    background-color : #FFFFFF;
    font-weight : bold;
    }

    /* None-bold submit button */
    input.liteoption {
    background-color : #FFFFFF;
    font-weight : normal;
    }

    /* This is the line in the posting page which shows the rollover
    help line. This is actually a text box, but if set to be the same
    colour as the background no one will know ;)
    */

    .helpline { background-color: #FFFFFF; border-style: none; }





    merci d avance
    • Partager sur Facebook
    • Partager sur Twitter
      28 septembre 2006 à 14:11:33

      Sans le code html on ne peut faire grand chose, aurais tu l'adresse du site ?
      • Partager sur Facebook
      • Partager sur Twitter
        28 septembre 2006 à 14:24:24

        Ta feuille de style est a quelle adresse ?
        Car apparement tu as des propriétés css définies dans la page index.php entre les balises <style> </style> et voila ce que ca donne (en partie, j'ai pas tout copié)
        body {
                background-color: #;
                scrollbar-face-color: #;
                scrollbar-highlight-color: #;
                scrollbar-shadow-color: #;
                scrollbar-3dlight-color: #;
                scrollbar-arrow-color:  #;
                scrollbar-track-color: #;
                scrollbar-darkshadow-color: #;
        }


        Voila, et c'est comme ca tout du long,aucune n'est défini, d'ou le noir, (car le noir c'est #000000, a mon avis le navigateur interprete le code comme ca)

        Deuxieme chose, tu as apparemment une feuille de style externe dont l'adresse ne doit pas etre correcte


        <link rel="stylesheet" href="templates/subSilver/" type="text/css">


        si c'est style.css il faudrait mettre :


        <link rel="stylesheet" href="templates/subSilver/style.css" type="text/css">


        a condition que ce soit ce répertoire.

        Quoi qu'il en soit, iln'estpas conseillé d'utiliser une feuille de style externe et une feuille de style directement dans la page, sauf en cas d'utilisation temporaire spécifique a une page bien précise.

        En conclusion, soit tu utilise le style dans ta page index.php et il faut reprogrammer tes couleurs car aucune n'y apparait, soit tu utilise une feuille de style externe, tu met un lien correct,et tu efface tout ce qui est inutile entre <style> et </style>
        • Partager sur Facebook
        • Partager sur Twitter
          28 septembre 2006 à 14:29:31

          merci beaucoup :D

          je vais regarder ca des que possible, je te tiens au courant
          • Partager sur Facebook
          • Partager sur Twitter

          Css probleme

          × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
          × Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
          • Editeur
          • Markdown