Bonjour à tous,

Je suis un grand débutant en CSS et depuis quelques temps je bloque sur un problème et je m'arrache les cheveux...

J'ai créé une page avec un menu déroulant qui est définit dans une div nommé "menunav". juste en dessous de mon menu déroulant, j'ai une autre div appelé "story", lorsque mon menu se déroule les sous menus sont cachés par la div story. J'ai essayé de jouer avec l'index z en mettant au niveau de mon menunav 0 et story 10 mais rien ne change.

Si vous avez une solution, là j'avoue je la prends de suite...

voici le code html de ma page

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Accueil</title>
<script type="text/javascript">
<!--
window.onload=montre;
function montre(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}
//-->
</script>
<link href="container.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
	margin-top: 3px;
	background-image: url(Images/bodyfond.jpg);
}
-->
</style></head>

<body>
<div id="container">
  <div id="top"><img src="Images/bandeau_hautnew.jpg" width="100%" height="105" /></div>
   
  <ul id="menunav">

<li class="rubrique">
<a href="#" title="Accueil" class="first-rub">Accueil</a>


</li>

<li class="rubrique">
<a href="#" title="Société" class="first-rub">Société</a>

<ul>
	
	<a href="#" title="Société" class="second-rub">Société</a>
	 
	<a href="#" title="Savoir-faire" class="second-rub">Savoir-faire</a>
	
</ul>
</li>

<li class="rubrique">
<a href="#" title="Services" class="first-rub">Services</a>

<ul>
	 
	<a href="#" title="Services" class="second-rub">Services</a>
	
	<a href="#" title="Bureau d'étude" class="second-rub">Bureau d'étude</a>
	
	<a href="#" title="Nouvel espace" class="second-rub">Nouvel espace</a>
	
	<a href="#" title="Rénovation" class="second-rub">Rénovation</a>
	
	<a href="#" title="Espace actif" class="second-rub">Espace actif</a>
		
</ul>
</li>

<li class="rubrique">
<a href="#" title="Réalisations" class="first-rub">Réalisations</a>


</li>

<li class="rubrique">
<a href="#" title="Partenaires" class="first-rub">Partenaires</a>

<ul>
	
	<a href="#" title="Partenaires" class="second-rub">Partenaires</a>
	
	<a href="#" title="Mobilier de bureau" class="second-rub">Mobilier de bureau</a>
	
</ul>
</li>
<li class="rubrique">
<a href="#" title="Nous contacter" class="first-rub">Nous contacter</a>

</li>

</ul>
  <div id="centrale">
    <div id="espace"></div>
    <div id="menu"></div>
    <div id="story"></div>
</div>
</body>
</html>Le CSS
Le CSS

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
#container {
	height: 770px;
	width: 80%;
	padding-right: 0%;
	padding-left: 0%;
	background-color: #0066FF;
	margin-right: 10%;
	margin-left: 10%;
	z-index: 0;
}
#container #top {
	background-color: #FF0000;
	height: 105px;
	width: 100%;
}
#menunav {
	width: 100%;
	height: 20px;
	margin: 0;
	padding: 0;
	border: 0;
	list-style-type: none;
	font-family: Tahoma;
	font-size: 13px;
	z-index: 10;
}

#menunav li {
	float: left;
	width: 16.55%!important;
	width: 90px;
	margin: 0;
	padding: 0;
	border: 0;
	text-align: center;
	line-height: 15px;
	font-size:0.9em;
	font-weight: bold;
	letter-spacing: 2px;
	display: block;
	text-decoration: none;
	background-color: #FFFFFF;
	z-index: 10;
}

#centrale #menu {
	width: 20%;
	height: 545px;
	float: left;
	background-color: #0000FF;
}
#centrale {
	height: 645px;
	width: 100%;
	z-index: 0;
}
#centrale #espace {
	background-color: #FF0000;
	height: 110px;
	width: 100%;
	z-index: auto;
}

#centrale #story {
	float: right;
	width: 80%;
	background-color: #FFFF00;
	height: 545px;
}




ul,li,a {
	display:block;
	margin:0;
	padding:0;
	border:0;
	z-index: 10;
}

/*
li****brique { 
	background:white;
}
*/
	
li****brique>ul {
	left:140px;
	z-index: 10;
} /* others */

a {
	padding:2px;
	/* margin:2px; */
	text-decoration:none;
	color: #FFFFFF;
	font-weight:bold;
	border: 1px solid #FFFFFF;
	width:auto; /* IE */
	z-index: 10;
}
	
li>a {
	width:100%;
	z-index: 10;
} /* others */

li a.first-rub {
	background-color: #494949;
	z-index: 10;
}

li a.second-rub {
	font-size:1em;
	/* background: transparent url("imgs/fond_hover.png") no-repeat; */
	background-color: #494949;
	width: 100%;
	z-index: 10;
}

/* regular hovers */

a:hover {
	border: 1px solid gray;
	z-index: 10;
}
	
li****brique a:hover {
	background-color: #E0EECA;
	border: 1px solid gray;
	z-index: 10;
}
	
/* hovers with specificity */

li a.first-rub:hover {
	color: #000000;
	background-color: #E0EECA;
	z-index: 10;
}
	
li****brique:hover {
	z-index:10;
}		
		
ul ul, li:hover ul ul {
	display:none;
	z-index: 10;
}

li:hover ul, li:hover li:hover ul {
	display:block;
	z-index: 10;
}