ghost
dimanche 16 mars 2008 à 16:08
Salut,
Sans te vexer, ton menu est une horreur sémantique et sans bidouillages profonds et pas très robustes, il ne te donnera pas satisfaction alors qu'avec l'utilisation d'une liste ça va tout seul, le code est plus clair, c'est correct, portable et sans souci...
CODE
<div class="top_boxy"> Menu
</div>
<ul class="mid_boxy">
<li><a href="index.php?url=accueil" >Infos</a></li>
<li><a href="index.php?url=ligue" >Ligue LRMP</a></li>
<li><a href="index.php?url=competitions" >Compétitions</a></li>
<li><a href="#" >Etudes et Rapports</a></li>
<li><a href="#" >Formations</a></li>
<li><a href="#" >Environnement</a></li>
<li><a href="index.php?url=forums" >Forum</a></li>
<li><a href="#" >Liens</a></li>
<li><a href="#" >Plan du site</a></li>
</ul>
<div class="bot_boxy">
</div>
CODE
.mid_boxy {
background: url(mid_frame.jpg) repeat-y top center;
text-align: center;
padding-top: 10px;
margin: 0px auto;
/*position: relative;*/
padding-bottom: 5px;
list-style-type: none;
}
.mid_boxy li {
background: #3333ff url(menu_bt.jpg) no-repeat center bottom;
height: 25px;
width: 140px;
line-height: 24px;
padding: 0px;
margin: 2px auto;
}
.mid_boxy li a{
display: block;
height: 25px;
width: 140px;
line-height: 24px;
text-decoration: none;
color: black;
padding: 0px;
}
.mid_boxy li a:hover {
background: lime url(menu_bt.jpg) no-repeat center top;
color: blue;
}