Bonjour
J'ai créé une page web avec des niveaux de menu menu niveau 1 a niveau 4 mais le menu niveau 4 s affiche quand je passe la souris sous le menu niveau 2 avant que je passe la souris sous le menu niveau 3 .
Je voudrais que le menu niveau 4 s affiche que quand je passe ma souris sous le niveau 3 pas avant
Je crois que le probleme est dans le cSS mais je ne vois pas ou avec les hoover etc...
Pouvez vous m aider
ci dessous mon code css et html
=======================================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML >
<TITLE>Boite à outil </TITLE>
<title></title>
<head>
<meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1.0">
<style>
* { margin:0.7; padding:0; text-decoration:none; }
.content { width:2000px; margin:auto; }
#monmenu { margin-top:15px; height:42px; padding:0px;}
#monmenu ul { list-style-type:none; }
#monmenu ul li { float:left; }
#monmenu ul li a { display:block; width:150px; color:black; line-height:60px; background-color: white; text-align:center; font-size:14px;padding:0px;}
#monmenu ul li a:hover { background-color:orange;}
#monmenu ul ul { display:none; position:absolute; }
#monmenu ul ul ul { display:none; position:absolute; }
#monmenu ul ul ul ul { display:none; position:absolute; }
#monmenu ul ul ul ul ul { display:none; position:absolute; }
#monmenu ul ul.niveau2 { top:60px; left:0px;padding:0px; }
#monmenu ul ul.niveau2bis { top:60px; left:0px;padding:0px; }
#monmenu ul ul.niveau2 li { float:none;}
#monmenu ul ul.niveau2bis li { float:none;}
#monmenu ul ul.niveau3 li { float:left; }
#monmenu ul ul.niveau3bis li { float:left; }
#monmenu ul ul.niveau3 li { float:left; }
#monmenu ul ul.niveau3bis li { float:left; }
#monmenu ul ul.niveau4bis li { float:left; }
#monmenu ul ul.niveau3 { top:0px; left:150px; }
#monmenu ul ul.niveau3bis { top:0px; left:150px; }
#monmenu ul ul.niveau4bis { top:0px; left:150px; }
#monmenu ul li ul li a { display:block; width:150; color:blue; line-height:42px; background-color:blue ; text-align:center; margin:1px;;padding:0px;text-align: left;}
#monmenu ul li ul li ul li a { display:block; left:300px;width:150px; color:black; line-height:42px; background-color:red ; text-align:left;margin:1px;padding:0px;}
#monmenu ul li ul li ul li ul li a{ display:block; left:450;width:150px; color:#57ABFF; line-height:42px; background-color:grey; text-align:left;margin:1px;padding:0px;}
#monmenu ul li ul li ul li ul li ul li a { display:block;left:600; width:150px; color:#57ABFF; line-height:42px; background-color:yellow; text-align:center;margin:1px;padding:0px;}
#monmenu ul li ul li ul li ul li ul li ul li a { display:block; left: 750;width:150px; color:#57ABFF; line-height:42px; background-color:grey; text-align:center;margin:1px;padding:0px;}
#monmenu li { position:relative; }
#monmenu li:hover ul.niveau2, #monmenu li li:hover ul.niveau3 { display:block;}#monmenu li li li:hover ul.niveau3 { display:block;}
#monmenu li:hover ul.niveau2bis , #monmenu li li:hover ul.niveau3bis { display:block;}#monmenu li li li:hover ul.niveau3bis { display:block;}#monmenu li li:hover ul.niveau4bis { display:block;}#monmenu li li li li:hover ul.niveau4bis { display:block;}
h1{color:orange;font-size:25px;}
h2{color:blue;font-style:normal;font-size:15px;font-family:Luminari;text-align:left;}
h3{color:blue;font-style:normal;font-size:15px;font-family:Luminari;text-align:left;}
jc{bg-color:#b4b4b4 }
.ed{top:0px;;font-family:Luminari, fantasy;font-size:24px;font-style:Luminari, fantasy;font-weight:900;font-variant:normal;color:#EFD807;text-align:left;text-bottom:center;background-color:#b4b4b4 }
.bo{font-family:Luminari, fantasy;font-size:15px;font-style:Luminari, fantasy;font-weight:900;font-variant:normal;color:#A98C78;text-align:left;text-bottom:center;background-color:#b4b4b4 }
</style>
</head>
<body>
<!--<div style="position:absolute;left:10px;height:210px;width:1200px;margin-left:auto;margin-right:auto;text-align:left;color:white;background-color:#57ABFF;font-size:25px;font-family:Arial;font-style:normal">
<div style="position:absolute;left:280px;height:210px;width:1200px;margin-left:auto;margin-right:auto;text-align:left;color:white;background-color:#57ABFF;font-size:25px;font-family:Arial;font-style:normal"><b><br><br>BOSOS(Boite à Outil Service Operation SDx )</b><br><br>
</div>-->
<div style="position:absolute;left:0px;height:150px;width:764px;margin-left:auto;margin-right:auto;text-align:left;color:white;background-color:#FF7900;font-size:20px;font-family:Arial;font-style:normal"></div>
<div style="position:absolute;left:0px;height150px;width:764px;margin-left:auto;margin-right:auto;text-align:center ;color:white;background-color:#FF7900;font-size:20px;font-family:Arial;font-style:normal"><b><br><br>Boite à Outil <br><br> </div>
<!--<img src="gollum.gif" style="position:absolute;height:90px; width:150px; top:60px ;left:500px"></div>-->
<!--<div style="position:absolute;top:210px;height:40px;color:orange;background-color:white;font-size:25px;font-family:Arial;font-style:normal;">
<marquee ><h1><b>Actualités à la une :</b>Nouveau doc de formation uCPE ... </h1></marquee></div>-->
<div style="position:absolute;top:136px;left:0px;"id="monmenu" class="content">
<ul class="niveau1">
<b>
</li>
<li><a style="background-color:purple;font-size:18px" >niveau 1?</a>
<ul class="niveau2bis" style="background-color:grey;color:black">
<li ><a style ="color:blue;font-size:20px">niveau 2 ? </a>
<ul class="niveau3bis" style="background-color:#50BE87;color:black">
<li><a style="font-size:18px" >niveau 3 </a>
<ul class="niveau4bis" style="background-color:#50BE87;color:black">
<li><a style="font-size:18px" href="#" target="_blank"style ="color:black;font-size:18px">niveau 4 </a></li>
</ul></li>
<li><a style="font-size:18px" href="#" target="_blank"style ="color:black;font-size:18px">niveau 3 </a>
</li>
</ul></li>
<li ><a style ="color:black;font-size:20px">niveau 2 ? </a>
<ul class="niveau3" style="background-color:#50BE87;color:black">
<li><a style="font-size:18px" href="#" target="_blank"style ="color:black;font-size:18px">niveau 3 </a>
<li><a style="font-size:18px" href="#" target="_blank"style ="color:black;font-size:18px">niveau 3 </a>
<li><a style=" font-size:18px"href="#" target="_blank">niveau 3</a></li>
</ul></li>
<li ><a style ="color:black;font-size:20px">niveau 2 ? </a>
<ul class="niveau3" style="background-color:#50BE87;color:black">
<li><a style="font-size:18px" href="#" target="_blank"style ="color:black;font-size:18px">niveau 3 </a>
</ul></li>
<!--<ul class="niveau3">
-->
</li>
</ul>
</li>
</b>
</ul> </li>
</div>
</body>
</html>
J'ai créé une page web avec des niveaux de menu menu niveau 1 a niveau 4 mais le menu niveau 4 s affiche quand je passe la souris sous le menu niveau 2 avant que je passe la souris sous le menu niveau 3 .
Je voudrais que le menu niveau 4 s affiche que quand je passe ma souris sous le niveau 3 pas avant
Je crois que le probleme est dans le cSS mais je ne vois pas ou avec les hoover etc...
Pouvez vous m aider
ci dessous mon code css et html
=======================================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML >
<TITLE>Boite à outil </TITLE>
<title></title>
<head>
<meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1.0">
<style>
* { margin:0.7; padding:0; text-decoration:none; }
.content { width:2000px; margin:auto; }
#monmenu { margin-top:15px; height:42px; padding:0px;}
#monmenu ul { list-style-type:none; }
#monmenu ul li { float:left; }
#monmenu ul li a { display:block; width:150px; color:black; line-height:60px; background-color: white; text-align:center; font-size:14px;padding:0px;}
#monmenu ul li a:hover { background-color:orange;}
#monmenu ul ul { display:none; position:absolute; }
#monmenu ul ul ul { display:none; position:absolute; }
#monmenu ul ul ul ul { display:none; position:absolute; }
#monmenu ul ul ul ul ul { display:none; position:absolute; }
#monmenu ul ul.niveau2 { top:60px; left:0px;padding:0px; }
#monmenu ul ul.niveau2bis { top:60px; left:0px;padding:0px; }
#monmenu ul ul.niveau2 li { float:none;}
#monmenu ul ul.niveau2bis li { float:none;}
#monmenu ul ul.niveau3 li { float:left; }
#monmenu ul ul.niveau3bis li { float:left; }
#monmenu ul ul.niveau3 li { float:left; }
#monmenu ul ul.niveau3bis li { float:left; }
#monmenu ul ul.niveau4bis li { float:left; }
#monmenu ul ul.niveau3 { top:0px; left:150px; }
#monmenu ul ul.niveau3bis { top:0px; left:150px; }
#monmenu ul ul.niveau4bis { top:0px; left:150px; }
#monmenu ul li ul li a { display:block; width:150; color:blue; line-height:42px; background-color:blue ; text-align:center; margin:1px;;padding:0px;text-align: left;}
#monmenu ul li ul li ul li a { display:block; left:300px;width:150px; color:black; line-height:42px; background-color:red ; text-align:left;margin:1px;padding:0px;}
#monmenu ul li ul li ul li ul li a{ display:block; left:450;width:150px; color:#57ABFF; line-height:42px; background-color:grey; text-align:left;margin:1px;padding:0px;}
#monmenu ul li ul li ul li ul li ul li a { display:block;left:600; width:150px; color:#57ABFF; line-height:42px; background-color:yellow; text-align:center;margin:1px;padding:0px;}
#monmenu ul li ul li ul li ul li ul li ul li a { display:block; left: 750;width:150px; color:#57ABFF; line-height:42px; background-color:grey; text-align:center;margin:1px;padding:0px;}
#monmenu li { position:relative; }
#monmenu li:hover ul.niveau2, #monmenu li li:hover ul.niveau3 { display:block;}#monmenu li li li:hover ul.niveau3 { display:block;}
#monmenu li:hover ul.niveau2bis , #monmenu li li:hover ul.niveau3bis { display:block;}#monmenu li li li:hover ul.niveau3bis { display:block;}#monmenu li li:hover ul.niveau4bis { display:block;}#monmenu li li li li:hover ul.niveau4bis { display:block;}
h1{color:orange;font-size:25px;}
h2{color:blue;font-style:normal;font-size:15px;font-family:Luminari;text-align:left;}
h3{color:blue;font-style:normal;font-size:15px;font-family:Luminari;text-align:left;}
jc{bg-color:#b4b4b4 }
.ed{top:0px;;font-family:Luminari, fantasy;font-size:24px;font-style:Luminari, fantasy;font-weight:900;font-variant:normal;color:#EFD807;text-align:left;text-bottom:center;background-color:#b4b4b4 }
.bo{font-family:Luminari, fantasy;font-size:15px;font-style:Luminari, fantasy;font-weight:900;font-variant:normal;color:#A98C78;text-align:left;text-bottom:center;background-color:#b4b4b4 }
</style>
</head>
<body>
<!--<div style="position:absolute;left:10px;height:210px;width:1200px;margin-left:auto;margin-right:auto;text-align:left;color:white;background-color:#57ABFF;font-size:25px;font-family:Arial;font-style:normal">
<div style="position:absolute;left:280px;height:210px;width:1200px;margin-left:auto;margin-right:auto;text-align:left;color:white;background-color:#57ABFF;font-size:25px;font-family:Arial;font-style:normal"><b><br><br>BOSOS(Boite à Outil Service Operation SDx )</b><br><br>
</div>-->
<div style="position:absolute;left:0px;height:150px;width:764px;margin-left:auto;margin-right:auto;text-align:left;color:white;background-color:#FF7900;font-size:20px;font-family:Arial;font-style:normal"></div>
<div style="position:absolute;left:0px;height150px;width:764px;margin-left:auto;margin-right:auto;text-align:center ;color:white;background-color:#FF7900;font-size:20px;font-family:Arial;font-style:normal"><b><br><br>Boite à Outil <br><br> </div>
<!--<img src="gollum.gif" style="position:absolute;height:90px; width:150px; top:60px ;left:500px"></div>-->
<!--<div style="position:absolute;top:210px;height:40px;color:orange;background-color:white;font-size:25px;font-family:Arial;font-style:normal;">
<marquee ><h1><b>Actualités à la une :</b>Nouveau doc de formation uCPE ... </h1></marquee></div>-->
<div style="position:absolute;top:136px;left:0px;"id="monmenu" class="content">
<ul class="niveau1">
<b>
</li>
<li><a style="background-color:purple;font-size:18px" >niveau 1?</a>
<ul class="niveau2bis" style="background-color:grey;color:black">
<li ><a style ="color:blue;font-size:20px">niveau 2 ? </a>
<ul class="niveau3bis" style="background-color:#50BE87;color:black">
<li><a style="font-size:18px" >niveau 3 </a>
<ul class="niveau4bis" style="background-color:#50BE87;color:black">
<li><a style="font-size:18px" href="#" target="_blank"style ="color:black;font-size:18px">niveau 4 </a></li>
</ul></li>
<li><a style="font-size:18px" href="#" target="_blank"style ="color:black;font-size:18px">niveau 3 </a>
</li>
</ul></li>
<li ><a style ="color:black;font-size:20px">niveau 2 ? </a>
<ul class="niveau3" style="background-color:#50BE87;color:black">
<li><a style="font-size:18px" href="#" target="_blank"style ="color:black;font-size:18px">niveau 3 </a>
<li><a style="font-size:18px" href="#" target="_blank"style ="color:black;font-size:18px">niveau 3 </a>
<li><a style=" font-size:18px"href="#" target="_blank">niveau 3</a></li>
</ul></li>
<li ><a style ="color:black;font-size:20px">niveau 2 ? </a>
<ul class="niveau3" style="background-color:#50BE87;color:black">
<li><a style="font-size:18px" href="#" target="_blank"style ="color:black;font-size:18px">niveau 3 </a>
</ul></li>
<!--<ul class="niveau3">
-->
</li>
</ul>
</li>
</b>
</ul> </li>
</div>
</body>
</html>