Souci css

Fermé
dédé27 - 17 oct. 2009 à 16:07
 Utilisateur anonyme - 18 oct. 2009 à 09:43
Bonjour,

j' ai telechargé un menu xhtml mais j' ai un leger souci de decalage, voir photo:

https://www.casimages.com/i/091017041121636430.gif.html


je ne sais pas trop quoi modifier pour agrandir le cadre blanc a contour bleu :s







.preload2 {background: url(images/menu/button4.gif);}
.menu2 {padding:0 0 0 32px; margin:0; list-style:none; height:40px; background:#fff url(images/menu/button1a.gif) repeat-x; position:relative; font-family:arial, verdana, sans-serif; }
.menu2 li.top {display:block; float:left; position:relative;}
.menu2 li a.top_link {display:block; float:left; height:40px; line-height:33px; color:#bbb; text-decoration:none; font-size:11px; font-weight:bold; padding:0 0 0 12px; cursor:pointer;}
.menu2 li a.top_link span {float:left; display:block; padding:0 24px 0 12px; height:40px;}
.menu2 li a.top_link span.down {float:left; display:block; padding:0 24px 0 12px; height:40px; background:url(images/menu/down.gif) no-repeat right top;}
.menu2 li a.top_link:hover {color:#fff; background: url(images/menu/button4.gif) no-repeat;}
.menu2 li a.top_link:hover span {background:url(images/menu/button4.gif) no-repeat right top;}
.menu2 li a.top_link:hover span.down {background:url(images/menu/button4a.gif) no-repeat right top;}

.menu2 li:hover > a.top_link {color:#fff; background: url(images/menu/button4.gif) no-repeat;}
.menu2 li:hover > a.top_link span {background:url(images/menu/button4.gif) no-repeat right top;}
.menu2 li:hover > a.top_link span.down {background:url(images/menu/button4a.gif) no-repeat right top;}


.menu2 table {border-collapse:collapse; width:0; height:0; position:absolute; top:0; left:0;}

/* Default link styling */

/* Style the list OR link hover. Depends on which browser is used */

.menu2 a:hover {visibility:visible;}
.menu2 li:hover {position:relative; z-index:200;}

/* keep the 'next' level invisible by placing it off screen. */
.menu2 ul,
.menu2 :hover ul ul,
.menu2 :hover ul :hover ul ul,
.menu2 :hover ul :hover ul :hover ul ul,
.menu2 :hover ul :hover ul :hover ul :hover ul ul {position:absolute; left:-9999px; top:-9999px; width:0; height:0; margin:0; padding:0; list-style:none;}

.menu2 :hover ul.sub {left:2px; top:40px; background: #fff; padding:3px 0; border:1px solid #4ab; white-space:nowrap; width:93px; height:auto;}
.menu2 :hover ul.sub li {display:block; height:20px; position:relative; float:left; width:90px;}
.menu2 :hover ul.sub li a {display:block; font-size:11px; height:20px; width:87px; line-height:20px; text-indent:5px; color:#000; text-decoration:none; border:3px solid #fff; border-width:0 0 0 3px;}
.menu2 :hover ul.sub li a.fly {background:#fff url(images/menu/arrow.gif) 80px 7px no-repeat;}
.menu2 :hover ul.sub li a:hover {background:#4ab; color:#fff;}
.menu2 :hover ul.sub li a.fly:hover {background:#4ab url(images/menu/arrow_over.gif) 80px 7px no-repeat; color:#fff;}
.menu2 :hover ul li:hover > a.fly {background:#4ab url(images/menu/arrow_over.gif) 80px 7px no-repeat; color:#fff;}

.menu2 :hover ul :hover ul,
.menu2 :hover ul :hover ul :hover ul,
.menu2 :hover ul :hover ul :hover ul :hover ul,
.menu2 :hover ul :hover ul :hover ul :hover ul :hover ul
{left:90px; top:-4px; background: #fff; padding:3px 0; border:1px solid #4ab; white-space:nowrap; width:93px; z-index:200; height:auto;}
a:link {
color: #0033FF;
}
a:visited {
color: #0033FF;
}
a:hover {
color: #6600FF;
}
a:active {
color: #0033FF;
}






<span class="preload2"></span>
<ul class="menu2">
<li class="top"><a href="http://www.cssplay.co.uk" id="home" class="top_link"><span>Accueil</span></a></li>


<li class="top"><a href="http://www.cssplay.co.uk" id="messagerie" class="top_link"><span class="down">Ma messagerie</span>
<!--[if gte IE 7]><!-->
</a>
<!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul class="sub">
<li><a href="../ie/">Boite de réception </a></li>
<li><a href="../opacity/">Ecrire un message </a></li>
<li><a href="../menu/">Mes options </a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>

<li class="top"><a href="http://www.cssplay.co.uk" id="annonces" class="top_link"><span class="down">Mes annonces</span>
<!--[if gte IE 7]><!-->
</a>
<!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul class="sub">
<li><a href="../ie/">Ecrire une annonce</a></li>
<li><a href="../opacity/">Modifier mes annonces</a></li>
<li><a href="../menu/">Mes options</a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>


<li class="top"><a href="http://www.cssplay.co.uk" id="shop" class="top_link"><span class="down">La boutique</span>
<!--[if gte IE 7]><!-->
</a>
<!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul class="sub">
<li><a href="../ie/">Online</a></li>
<li><a href="../opacity/">Catalogue</a></li>
<li><a href="../menu/">Mail Order</a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li class="top"><a href="http://www.cssplay.co.uk" id="privacy" class="top_link"><span>Contact</span></a></li>
</ul>


mille mercis d' avance

1 réponse

Utilisateur anonyme
18 oct. 2009 à 09:43
essaie d'écrire sur deux lignes :

<li class="top"><a href="http://www.cssplay.co.uk" id="annonces" class="top_link"><span class="down">Mes annonces</span> 
<!--[if gte IE 7]><!--> 
</a> 
<!--<![endif]--> 
<!--[if lte IE 6]><table><tr><td><![endif]--> 
<ul class="sub"> 
<li><a href="../ie/">Ecrire une annonce</a></li> 
<li><a href="../opacity/">Modifier mes<br/>annonces</a></li> 
<li><a href="../menu/">Mes options</a></li> 
</ul> 
<!--[if lte IE 6]></td></tr></table></a><![endif]--> 
</li> 
0