Partage
  • Partager sur Facebook
  • Partager sur Twitter

Problème de menu

Au secours FireFox est pas gentil!!

Sujet résolu
    18 décembre 2005 à 5:25:18

    Salut!
    J'ai un problème de menu sous firefox qui me donne ca:
    Ici
    Et voici les codes de mes pages index.html et default.css
    Index.html

    <!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="fr">

    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
    </script>
    <script type="text/javascript">
    _uacct = "UA-87456-1";
    urchinTracker();
    </script>

      <head>
          <title></title>
              
                  <link rel="stylesheet" type="text/css" href="default.css"  />
          <link rel="stylesheet" type="text/css" href="niftyCorners.css"  />
          <link rel="stylesheet" type="text/css" href="niftyPrint.css" media="print"  />
          <LINK REL="SHORTCUT ICON" HREF="favicon.png">
          <script type="text/javascript" src="nifty.js"></script>
          <script type="text/javascript">
          window.onload=function()
                            {
            if(!NiftyCheck())
                return;
               
            Rounded("div#header", "bottom", "#E6E6E6", "#FFFFFF", "smooth&quot;);
            Rounded("div#menu", "all", "#E6E6E6", "#FFFFFF", "smooth&quot;);
                    Rounded("div.titre", "all", "#FFFFFF", "#E6E6E6", "smooth&quot;);
            Rounded("div.contenu", "all", "#E6E6E6", "#FFFFFF", "smooth&quot;);
            Rounded("h3", "all", "#E6E6E6", "#E57214", "smooth&quot;);
          }
          </script>
      </head>
     
      <body>
                    <div id="main">
                   
                  <div id="header">
              <img src="Images/logo.bmp" alt="Logo de " class="img_header" />          
                    </div>
    <span class="date">
                    <SCRIPT language=JavaScript>
    <!-- Hide the script from non-Javascript browsers
    var date_statement="";
    var time_statement="";
    var today=new Date();
    var month="";
    var day="";
    function todays_date() {
    var month=today.getMonth();
    var day_of_week=today.getDay();
    date_statement=""
    document.month=""
    month++; // So it's now between 1 - 12.
    if(month==1) {
    january(today.getDate());
    document.month="janvier";
    }
    if(month==2) {
    february(today.getDate());
    document.month="février";
    }
    if(month==3) {
    march(today.getDate());
    document.month="mars";
    }
    if(month==4) {
    april(today.getDate());
    document.month="avril";
    }
    if(month==5) {
    may(today.getDate());
    document.month="mai";
    }
    if(month==6) {
    june(today.getDate());
    document.month="juin";
    }
    if(month==7) {
    july(today.getDate());
    document.month="juillet";
    }
    if(month==8) {
    august(today.getDate());
    document.month="août";
    }
    if(month==9) {
    september(today.getDate());
    document.month="septembre";
    }
    if(month==10) {
    october(today.getDate());
    document.month="octobre";
    }
    if(month==11) {
    november(today.getDate());
    document.month="novembre";
    }
    if(month==12) {
    december(today.getDate());
    document.month="décembre";
    }
    document.day=""
    if(day_of_week==0)
    document.day="dimanche";
    if(day_of_week==1)
    document.day="lundi";
    if(day_of_week==2)
    document.day="mardi";
    if(day_of_week==3)
    document.day="mercredi";
    if(day_of_week==4)
    document.day="jeudi";
    if(day_of_week==5)
    document.day="vendredi";
    if(day_of_week==6)
    document.day="samedi";
    }
    function january(date) {
    if(date==1)
    date_statement="";
    if(date==26)
    date_statement="";
    }
    function february(date) {
    if(date==14)
    date_statement="";
    }
    function march(date) {
    if(date==15)
    date_statement="";
    if(date==17)
    date_statement="";
    }
    function march(date) {
    if(date==21)
    date_statement="";
    if(date==25)
    date_statement="";
    }
    function april(date) {
    if(date==1)
    date_statement="";
    if(date==30)
    date_statement="";
    }
    function may(date) {
    if(date==1)
    date_statement="";
    if(date==17)
    date_statement="";
    }
    function june(date) {
    if(date==2)
    date_statement="";
    if(date==5)
    date_statement="";
    if(date==10)
    date_statement="";
    if(date==17)
    date_statement="";
    if(date==21)
    date_statement="";
    if(date==23)
    date_statement="";
    if(date==24)
    date_statement="";
    }
    function july(date) {
    if(date==1)
    date_statement="";
    if(date==4)
    date_statement="";
    if(date==14)
    date_statement="";
    if(date==21)
    date_statement="";
    if(date==23)
    date_statement="";
    }
    function august(date) {
    if(date==1)
    date_statement="";
    }
    function september(date) {
    if(date==7)
    date_statement="";
    if(date==21)
    date_statement="C'est l'automne !";
    }
    function october(date) {
    if(date==3)
    date_statement="";
    if(date==12)
    date_statement="";
    if(date==31)
    date_statement="Happy Halloween.";
    }
    function november(date) {
    }
    function december(date) {
    if(date==21)
    date_statement+="Couvrez-vous c'est l'hiver !";
    if(date==23)
    date_statement+="";
    if(date==25)
    date_statement="Joyeux Noël!";
    if(date==31)
    date_statement="Bon réveillon !";
    }

    function time_of_day() {
    var time=today.getHours();
    time_statement=""
    if(time>
    =6 && time<8)
    time_statement="Déja sur le Net !,"
    if(time>
    =8 && time<12)
    time_statement="Bonne matinée,"
    if(time>
    =12 && time<13)
    time_statement="Bon appétit,"
    if(time>
    =13 && time<17)
    time_statement="Bon après-midi,"
    if(time>
    =17 && time<18)
    time_statement="Bon fin d'après-midi,"
    if(time>
    =18 && time<20)
    time_statement="Bonsoir et bon appétit,"
    if(time>
    =20 && time<22)
    time_statement="Bonsoir,"
    if(time>
    =22 || time<6)
    time_statement="Salut les couche-tard,"
    }
    // -- End Hiding Here -->

    </SCRIPT>
              <SCRIPT language=JavaScript>
                    <!-- Hide the script from non-Javascript browsers
    time_of_day();
    todays_date();
    document.writeln(""+time_statement+" nous sommes le "+document.day+" "+today.getDate()+" "+document.month+". "+date_statement+"&quot;)
    // -- End Hiding Here -->

    </SCRIPT></span>

                            <div id="menu">
                                            <h2><div class="titre">» Site</div></h2>
                                            <ul>
                                            <li><a href="index.htm" title="Retour à l'accueil">Accueil</a></li>
                                            <li><a href="" title="Le forum (Question, Suggestion, Bug ?)">Forums</a></li>
                                            <li><a href="" title="Le livre d'or pour donner vos commentaires constructifs sur le site">Livre d'or</a></li></ul>
                                           
                                                                            <h2><div class="titre">» Membres</div></h2>     
                    <span class="espace_membres">
                    <form action="" method='post'>
                 Pseudo :<input type="text" name="login" maxlength="15" class="pseudo-pass">
               <br />
               Pass :<input type="password"name="pass" maxlength="12" class="pseudo-pass2">
              <br />
              <input type="submit" value="Connection !!">
              <br />
              <a href="">Mot de passe perdu?</a>
              </form></span>
                                           
                    <h2><div class="titre">» Partenaires</div></h2>
                              <ul>
                                    <li><a href="http://sarcia.freezee.org/" title="Sarcia - Le site officiel">Sarcia.freezee.org</a></li>
                                                    <li><a href="http://www.ororea.com" title="Le Site du Zér0">Siteduzero.com</a></li>
                              </ul>
                            </div>
                           
                            <div id="main_contenu">
           
    <div class="contenu">
    <h2><div class="titre">
            » Niouz
    </div>
    </h2>
    Ici il faut insérer les niouz!
    <br />
    <p>
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Proin luctus massa nec augue.
            Donec lacinia libero in nulla. Quisque scelerisque libero sit amet justo.
            Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Mauris porttitor molestie quam.
            Nulla facilisi. Nam eu lacus in tortor faucibus egestas. Suspendisse potenti.
            Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam pretium euismod nisl.
            Donec quis orci.
    <br />
    <br />
    Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.
     Donec nibh nibh, ullamcorper ut, aliquam ut, egestas at, nisl. Fusce sapien metus,
     accumsan vehicula, lobortis eu, ultricies id, nibh.
     Suspendisse non sapien id elit iaculis vulputate. Praesent turpis.
     Nunc sit amet lectus ut elit cursus lobortis. Ut nulla mauris, sagittis et, sodales sit amet,
     varius nec, erat. Curabitur porta nisl sed nunc. Sed non erat. Curabitur cursus sapien ac tellus.
     In egestas felis eget nibh. Nunc lectus. Fusce cursus neque eget justo.
     Sed ac tortor id ante rutrum malesuada. Nullam nulla. Integer eu ligula et ipsum imperdiet rhoncus. Aenean libero diam, ultrices vitae, ullamcorper non, ornare non, felis. Etiam turpis nisl, congue id, placerat ut, interdum vel, felis.
    <br />
    <br />
    Quisque eu mi ut eros tincidunt cursus.
     Maecenas sapien. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
     Fusce volutpat. Praesent tellus mi, accumsan et, sagittis eget, congue ut, risus.
     Ut tempor ligula rutrum lorem. Nunc et augue sit amet nibh ullamcorper varius.
     Aenean volutpat scelerisque libero. In erat lacus, pulvinar at, pulvinar ut, venenatis id, ipsum.
     Pellentesque at enim. Sed ac dui at sem aliquam aliquet. Sed ut erat vel augue commodo convallis.
     Praesent pharetra, odio non imperdiet elementum, sapien metus fringilla tortor,
     sed rhoncus mauris urna eu tortor. Ut vulputate. Nunc facilisis quam. Nam ut justo.
     Donec porttitor augue id magna. Quisque vehicula pulvinar justo.
    <br />
    </p>
     </div>

    <div class="contenu">
            <h2><div class="titre">
            » Découvrir...
            </div>
            </h2>
           
                                    <a href="http://sarcia.freezee.org" style="text-decoration: underline;" title="Visiter ce site">
                                            Sarcia
                                    </a>
                           
                            <p style="font-style: italic;">"Le site officiel du jeu Sarcia, crée par Kaëlar,
                            Mettant en scène Weran un jeune homme qui vit dans un monde étrange..."</p>
                    </li>
                   
                    <li>
                            <span style="font-weight: bold;">
                                    <a href="http://www.siteduzero.com" style="text-decoration: underline;" title="Visiter ce site">
                                            Le Site du Zér0
                                    </a>
                            </span>
                           
                            <p style="font-style: italic;">
                            "LE site par excellence, d'après moi, pour apprendre la création de site web, le PHP, le C/C++,
                            le Mapping et plein d'autres choses crée par les 'Zér0s' !!
                    </p>

    </div>

            </body>

    </html>

    Default.css

    body {
    margin: auto;
    padding: 0;
    background: #e6e6e6;
    font-family: verdana, tahoma, helvetica, arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    }

    a img {
    border: 0;
    }

    input, textarea {
    background-color: #fff;
    border: 0;
    padding: 0.3em;
    font-size: 12px;
    text-align: left;
    border: 1px solid #a3a3a3;
    color: #a3a3a3;
    }

    select {
    color: #a3a3a3;
    }

    textarea {
    width: 80%;
    height: 15em;
    }


    #formulaire #titre {
    width: 80%;
    }

    h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    }

    h2 {
    color: #79D700;
    font-weight: bold;
    font-size: 17px;
    margin: 0.5em;
    }

    h2 a {
    color: #e57214;
    font-style: italic;
    }

    h3 {
    background: #e57214;
    color: #fff;
    font-size: 15px;
    text-align: center;
    margin-bottom: 0.3em;
    }

    h3 a {
    color: #fff;
    }

    h3 span {
    padding: 0.5em;
    }

    ul, p, table {
    margin: 0;
    padding: 0;

    margin-left: 1em;
    padding: 0.3em;
    }

    form {
    margin: 0;
    padding: 0;
    }

    table {
    border-top: 1px solid #a3a3a3;
    border-left: 1px solid #a3a3a3;
    width: 95%;
    border-spacing: 0;
    font-size: 12px;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    padding: 0;
    border-collapse: collapse;
    }

    table td, th {
    border-right: 1px solid #a3a3a3;
    padding: 0.3em;
    text-align: center;
    border-bottom: 1px solid #a3a3a3;
    }

    table td, tr {
    background: transparent;
    }

    table th {
    background: #e6e6e6;
    color: #a3a3a3;
    text-align: left;
    }

    table th a {
    color: gray;
    }

    li {
    list-style: none;
    padding: 0.3em;
    }

    a {
    color: #5f5f5f;
    text-decoration: none;
    }

    a:hover {
    font-weight: bold;
    color: #5f5f5f;
    }

    div#main {
    margin: auto;
    width: 95%;
    }

    div#main div#header {
    margin-bottom: 0.5em;
    background-color: #FFFFFF;
    color: #a3a3a3;
    font-weight: bold;
    }

    .img_header
    {
    margin: auto;
    }

    .pseudo
    {
    color: #79d700;
    }
    .pseudo-pass
    {
       width: 56px;
       margin-bottom: 2px;
       margin-left: 5px;
       color: #79d700;
       font-weight: bold;
    }

    .pseudo-pass2
    {
       width: 50px;
       margin-bottom: 2px;
       color: #79d700;
       font-weight: bold;
    }

    .image_header{
    width: 55px;
    margin-right: -60px;
    }

    .date
    {
    color: #000000;
    margin-top: 10px;
    font-weight: bold;
    }

    div#main div.titre_niouz {
    width: 100%;
    float: left;
    background: #E6E6E6;
    }

    div#main div#menu {
    width: 20%;
    height: ;
    margin-top: 1px;
    float: left;
    background: #FFFFFF;
    }

    div#main div.titre {
    width: 100%;
    float: left;
    background: #E6E6E6;
    }

    div#menu li, div#menu ul {
    margin: 0;
    padding: 0;
    font-weight: bold;
    }

    div#main div#menu a {
    display: block;
    padding: 0.4em;
    padding-left: 1em;
    text-decoration: underline;
    }

    div#main div#menu a:hover {
    text-decoration: none;
    font-weight: bold;
    text-decoration: overline underline;
    }

    div#main div#main_contenu {
    width: 78%;
    float: right;
    }

    div#main div#main_contenu div.contenu {
    background: #fff;
    margin-bottom: 0.3em;
    color: #a3a3a3;
    }

    table tr#gray {
    background: #DCDCDC;
    }

    Merci d'avance et bonne chance ^^
    • Partager sur Facebook
    • Partager sur Twitter
      18 décembre 2005 à 6:13:08

      Lu
      enleve ton div class="titre" du <h2>
      • Partager sur Facebook
      • Partager sur Twitter
        18 décembre 2005 à 10:31:02

        ajoute

        div#menu ul {
        clear:both;
        }

        • Partager sur Facebook
        • Partager sur Twitter
          18 décembre 2005 à 15:09:47

          Ouais!! :D
          Merci mebon!
          Un bug de moins! ;)
          • Partager sur Facebook
          • Partager sur Twitter

          Problème de menu

          × 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