bonjour,
une fois encore, le résultat entre internet explorer et firefox ne correspond pas...
voila ce que j'obtiens sur FF
alors que j'aimerais arriver au meme resultat que Internet Explorer :
.
www.joelleg.ch pour la page en ligne
et le code onglet_1.php
Merci pour votre aide
Modifié par p_tite_jo (19 Jan 2006 - 19:32)
une fois encore, le résultat entre internet explorer et firefox ne correspond pas...
voila ce que j'obtiens sur FF

alors que j'aimerais arriver au meme resultat que Internet Explorer :

www.joelleg.ch pour la page en ligne
<style type="text/css">
html{
background-color: #FFFFFF;
margin: 0;
padding: 0;
height: 100%;
}
body{
margin: 0 auto;
background: url(design/maison.gif);
background-repeat: no-repeat;
width: 760px;
height: 800px;
}
.menu {
margin-top:102px;
margin-left: 208px;
width: 552px;
position: relative;
}
.menu a {
text-decoration:none ;
text-align:center;
color: #EAB788;
font-size : 15px ;
float:left ;
width:92px ;
height: 30px;
padding-top: 6px;
background-repeat: no-repeat ;
}
.onglet_1 {
background : url(../menus/onglets/onglet_1_inactif.gif);
}
.onglet_2 {
background : url(../menus/onglets/onglet_2_inactif.gif);
}
.onglet_3 {
background : url(../menus/onglets/onglet_3_inactif.gif);
}
.onglet_4 {
background : url(../menus/onglets/onglet_4_inactif.gif); background-repeat: no-repeat ;
}
.onglet_5 {
background : url(../menus/onglets/onglet_5_inactif.gif); background-repeat: no-repeat ;
}
.onglet_6 {
background : url(../menus/onglets/onglet_6_inactif.gif); background-repeat: no-repeat ;
}
a:hover {color:#C0C0C0;}
.onglet-actif{
width: 92px;
height: 30px;
background: url(../menus/onglets/onglet_1.gif);
background-repeat: no-repeat;
text-decoration:none ;
text-align:center;
color: #EAB788;
font-size : 15px ;
float:left;
padding-top: 6px;
}
.spacer {clear:both}
/*SOUS-MENUS*/
li {display: inline;}
dd {
margin:0;
padding: 0;
}
.smenu{
position: absolute;
width: 552px;
height: 21px;
top:30px;
_left: -40px;
background: url(../menus/onglets/sous_menu.gif);
background-repeat: no-repeat;
}
a.smenu_lien{
font-size: 13px;
color: black;
padding:0;
margin: 0;
width: 100px;
height: 20px;
}
a.smenu_lien:hover{color:#C0C0C0;}
</style>
</head>
<body>
<?php include ("menus/onglet_1.php"); ?>
</body>
</html>
et le code onglet_1.php
<div class="menu"> <!-- début de la boite contenant les onglets -->
<dl>
<dd class="onglet_1 onglet-actif">Onglet 1 <!-- onglet ACTIF -->
<ul class="smenu">
<li><a class="smenu_lien" href="#">Sous-menu 1.1</a></li>
<li><a class="smenu_lien" href="#">Sous-menu 1.2</a></li>
<li><a class="smenu_lien" href="#">Sous-menu 1.3</a></li>
<li><a class="smenu_lien" href="#">Sous-menu 1.4</a></li>
li><a class="smenu_lien" href="#">Sous-menu 1.5</a></li>
</ul>
</dd>
</dl>
<a class="onglet_2" href="onglet_2.php">Onglet 2</a> <!-- onglet inactif -->
<a class="onglet_3" href="onglet_3.php">Onglet 3</a> <!-- onglet inactif -->
<a class="onglet_4" href="onglet_4.php">Onglet 4</a> <!-- onglet inactif -->
<a class="onglet_5" href="onglet_5.php">Onglet 5</a> <!-- onglet inactif -->
<a class="onglet_6" href="onglet_6.php">Onglet 6</a> <!-- onglet inactif -->
<div class="spacer"></div>
</div>
Merci pour votre aide
Modifié par p_tite_jo (19 Jan 2006 - 19:32)