Un code un peu long!!!

saleh -  
RAD ZONE Messages postés 5362 Statut Contributeur -
Bonjour,
<div class="mmenu" onMouseOut="startClose()" onMouseOver="stopClose()" onselectstart="return _f" id="menu0" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(0, 77, 149); border-bottom-width: 2px; border-bottom-style: solid; border-bottom-color: rgb(0, 77, 149); border-top-width: 2px; border-top-style: solid; border-top-color: rgb(0, 77, 149); position: absolute; top: 140px; left: 397px; z-index: 999; visibility: visible; background-position: initial initial; background-repeat: initial initial; "><a id="mmlink0" href="#" onClick="return clickAction(this._itemRef)" onMouseOut="_mot=setTimeout('_mOUt(this._itemRef)',99)" onMouseOver="return changeStatus(this._itemRef)" style="background:transparent;text-decoration:none;height:1px;width:1px;overflow:hidden;position:absolute;"></a><table border="0" cellpadding="0" cellspacing="0" id="tbl0"><tbody><tr><td nowrap="" tabindex="0" id="el0" onMouseOver="_popi(0)" style="background:#004d95;padding:2px"><a onMouseOver="this.blur()" href="#" id="lnk0" style="color:#FFFFFF;font-Family:Arial;font-Weight:normal;font-Style:normal;font-Size:11px;text-Decoration:none;;"> Accueil </a></td><td style="width:1px;;background:white"><table border="0" cellpadding="0" cellspacing="0" width="1"><tbody><tr><td></td></tr></tbody></table></td><td nowrap="" tabindex="1" id="el1" onMouseOver="_popi(1)" style="background:#004d95;padding:2px"><a onMouseOver="this.blur()" href="#" id="lnk1" style="color:#FFFFFF;font-Family:Arial;font-Weight:normal;font-Style:normal;font-Size:11px;text-Decoration:none;;"> A propos </a></td><td style="width:1px;;background:white"><table border="0" cellpadding="0" cellspacing="0" width="1"><tbody><tr><td></td></tr></tbody></table></td><td nowrap="" tabindex="2" id="el2" onMouseOver="_popi(2)" style="background:#004d95;padding:2px"><a onMouseOver="this.blur()" href="#" id="lnk2" style="color:#FFFFFF;font-Family:Arial;font-Weight:normal;font-Style:normal;font-Size:11px;text-Decoration:none;;"> Nos produits </a></td><td style="width:1px;;background:white"><table border="0" cellpadding="0" cellspacing="0" width="1"><tbody><tr><td></td></tr></tbody></table></td><td nowrap="" tabindex="3" id="el3" onMouseOver="_popi(3)" style="background:#004d95;padding:2px"><a onMouseOver="this.blur()" href="#" id="lnk3" style="color:#FFFFFF;font-Family:Arial;font-Weight:normal;font-Style:normal;font-Size:11px;text-Decoration:none;;"> Usine </a></td><td style="width:1px;;background:white"><table border="0" cellpadding="0" cellspacing="0" width="1"><tbody><tr><td></td></tr></tbody></table></td><td nowrap="" tabindex="4" id="el4" onMouseOver="_popi(4)" style="background:#004d95;padding:2px"><a onMouseOver="this.blur()" href="#" id="lnk4" style="color:#FFFFFF;font-Family:Arial;font-Weight:normal;font-Style:normal;font-Size:11px;text-Decoration:none;;"> Procédé </a></td><td style="width:1px;;background:white"><table border="0" cellpadding="0" cellspacing="0" width="1"><tbody><tr><td></td></tr></tbody></table></td><td nowrap="" tabindex="5" id="el5" onMouseOver="_popi(5)" style="background:#004d95;padding:2px"><a onMouseOver="this.blur()" href="#" id="lnk6" style="color:#FFFFFF;font-Family:Arial;font-Weight:normal;font-Style:normal;font-Size:11px;text-Decoration:none;;"> Contact </a></td></tr></tbody></table></div>

S'il vous plaît, je suis un peu nul avec les codes sources long comme celui la
J'ai besoin de votre aide pour je puisse mettre mon cette barre de menu au milieu, et pour agrandir la police d'écriture??

merci beaucoup

2 réponses

titus22 Messages postés 2352 Statut Membre 641
 
Oh mon dieu,
tu devrais indenté ce code la c'est illisible ! ^^
0
RAD ZONE Messages postés 5362 Statut Contributeur 1 360
 
loool

salut

mais meme indente il fait tres peur ;-)) tout ca pour un simple menu !!?

et encore j ai resortis un peu le css , avec meme des valeurs inconnue pour la c5 , mais je les ai misent quand meme , j ai rien corrige , mais juste indente ;-))

mais bon au moins c est lisible

  <style type="text/css">
  /*<![CDATA[*/
  div.c5{
    background-image:initial;
    background-attachment:initial;
    background-origin:initial;
    background-clip:initial;
    background-color:#004d95;
    border-bottom-width:2px;
    border-bottom-style:solid;
    border-bottom-color:#004d95;
    border-top-width:2px;
    border-top-style:solid;
    border-top-color:#004d95;
    position:absolute;
    top:140px;
    left:397px;
    z-index:999;
    visibility:visible;
    background-position:initial initial;
    background-repeat:initial initial;
  }

  td.c4{
    width:1px;
  ;
    background:#FFF;
  }

  td.c3{
    background:#004d95;
    padding:2px;
  }

  a.c2{
    color:#FFF;
    font-Family:Arial;
    font-Weight:normal;
    font-Style:normal;
    font-Size:11px;
    text-Decoration:none;
  ;
  }

  a.c1{
    background:transparent;
    text-decoration:none;
    height:1px;
    width:1px;
    overflow:hidden;
    position:absolute;
  }
  /*]]>*/
  </style>
</head>

<body>
  <div class="mmenu c5" onmouseout="startClose()" onmouseover="stopClose()" onselectstart=
  "return _f" id="menu0">
    <a id="mmlink0" href="#" onclick="return clickAction(this._itemRef)" onmouseout=
    "_mot=setTimeout('_mOUt(this._itemRef)',99)" onmouseover="return changeStatus(this._itemRef)"
    class="c1"></a>

    <table border="0" cellpadding="0" cellspacing="0" id="tbl0">
      <tbody>
        <tr>
          <td nowrap="nowrap" tabindex="0" id="el0" onmouseover="_popi(0)" class="c3">
          <a onmouseover="this.blur()" href="#" id="lnk0" class="c2">Accueil</a></td>

          <td class="c4">
            <table border="0" cellpadding="0" cellspacing="0" width="1">
              <tbody>
                <tr>
                  <td></td>
                </tr>
              </tbody>
            </table>
          </td>

          <td nowrap="nowrap" tabindex="1" id="el1" onmouseover="_popi(1)" class="c3">
          <a onmouseover="this.blur()" href="#" id="lnk1" class="c2">A propos</a></td>

          <td class="c4">
            <table border="0" cellpadding="0" cellspacing="0" width="1">
              <tbody>
                <tr>
                  <td></td>
                </tr>
              </tbody>
            </table>
          </td>

          <td nowrap="nowrap" tabindex="2" id="el2" onmouseover="_popi(2)" class="c3">
          <a onmouseover="this.blur()" href="#" id="lnk2" class="c2">Nos produits</a></td>

          <td class="c4">
            <table border="0" cellpadding="0" cellspacing="0" width="1">
              <tbody>
                <tr>
                  <td></td>
                </tr>
              </tbody>
            </table>
          </td>

          <td nowrap="nowrap" tabindex="3" id="el3" onmouseover="_popi(3)" class="c3">
          <a onmouseover="this.blur()" href="#" id="lnk3" class="c2">Usine</a></td>

          <td class="c4">
            <table border="0" cellpadding="0" cellspacing="0" width="1">
              <tbody>
                <tr>
                  <td></td>
                </tr>
              </tbody>
            </table>
          </td>

          <td nowrap="nowrap" tabindex="4" id="el4" onmouseover="_popi(4)" class="c3">
          <a onmouseover="this.blur()" href="#" id="lnk4" class="c2">Procédé</a></td>

          <td class="c4">
            <table border="0" cellpadding="0" cellspacing="0" width="1">
              <tbody>
                <tr>
                  <td></td>
                </tr>
              </tbody>
            </table>
          </td>

          <td nowrap="nowrap" tabindex="5" id="el5" onmouseover="_popi(5)" class="c3">
          <a onmouseover="this.blur()" href="#" id="lnk6" class="c2">Contact</a></td>
        </tr>
      </tbody>
    </table>


bon courage ;-))

a+
0