Hallo,
Voor mijn werk ben ik bezig om voor een overheidsinstantie een menu te maken in css en xhtml strict. Het menu is opzich netjes gestyled. (in IE7 en FireFox) echter zijn er twee problemen waar ik helaas niet uitkom.
Het ene probleem zit bij IE7. Het menu wanneer dit is uitgeklapt valt dit over het tweede menu wat onder het hoofdmenu zit. (zie afbeelding)

Ik ben hier al het hele weekend bezig, maar ik zie de fout eigenlijk niet zitten. Diverse sites (waaronder deze uiteraard) al afgezocht naar dergelijke problemen, maar heb helaas nog niets gevonden wat als oplossing voor mijn probleem kan dienen. Daarom hoop ik dat jullie me hiermee kunnen helpen. Zouden jullie m'n code eens willen checken en hopelijk zien jullie het foutje waar ik nu al 5 dagen overheen kijk!! Alvast dank voor de moeite.
Lex
css code:
en de html
Voor mijn werk ben ik bezig om voor een overheidsinstantie een menu te maken in css en xhtml strict. Het menu is opzich netjes gestyled. (in IE7 en FireFox) echter zijn er twee problemen waar ik helaas niet uitkom.
Het ene probleem zit bij IE7. Het menu wanneer dit is uitgeklapt valt dit over het tweede menu wat onder het hoofdmenu zit. (zie afbeelding)

Ik ben hier al het hele weekend bezig, maar ik zie de fout eigenlijk niet zitten. Diverse sites (waaronder deze uiteraard) al afgezocht naar dergelijke problemen, maar heb helaas nog niets gevonden wat als oplossing voor mijn probleem kan dienen. Daarom hoop ik dat jullie me hiermee kunnen helpen. Zouden jullie m'n code eens willen checken en hopelijk zien jullie het foutje waar ik nu al 5 dagen overheen kijk!! Alvast dank voor de moeite.
Lex
css code:
Cascading Stylesheet:
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
| #hoofdmenu { list-style: none; margin: 0 5px 0 0; height: 100%; } #hoofdmenu li { border-bottom: 1px solid #b8c3df; } #hoofdmenu #bThema a:link, #hoofdmenu #bThema a:visited { width: 205px; height: 55px; overflow: hidden; background: url(../images/button-themas.gif) no-repeat 0 0; text-indent: -99999px; display: block; } #hoofdmenu #bThema a:hover { background: url(../images/button-themas.gif) no-repeat 0 -55px; } #hoofdmenu #bThema a:active { background: url(../images/button-themas.gif) no-repeat 0 -110px; } #hoofdmenu #bBestuur a:link, #hoofdmenu #bBestuur a:visited { width: 205px; height: 55px; overflow: hidden; background: url(../images/button-bestuurlijk.gif) no-repeat 0 0; text-indent: -99999px; display: block; } #hoofdmenu #bBestuur a:hover { background: url(../images/button-bestuurlijk.gif) no-repeat 0 -55px; } #hoofdmenu #bBestuur a:active { background: url(../images/button-bestuurlijk.gif) no-repeat 0 -110px; } #hoofdmenu #bProducten a:link, #hoofdmenu #bProducten a:visited { width: 205px; height: 55px; overflow: hidden; background: url(../images/button-producten.gif) no-repeat 0 0; text-indent: -99999px; display: block; } #hoofdmenu #bProducten a:hover { background: url(../images/button-producten.gif) no-repeat 0 -55px; } #hoofdmenu #bProducten a:active { background: url(../images/button-producten.gif) no-repeat 0 -110px; } #hoofdmenu #bZeeland a:link, #hoofdmenu #bZeeland a:visited { width: 205px; height: 55px; overflow: hidden; background: url(../images/button-zeeland.gif) no-repeat 0 0; text-indent: -99999px; display: block; } #hoofdmenu #bZeeland a:hover { background: url(../images/button-zeeland.gif) no-repeat 0 -55px; } #hoofdmenu #bZeeland a:active { background: url(../images/button-zeeland.gif) no-repeat 0 -110px; } #hoofdmenu #bNieuws a:link, #hoofdmenu #bNieuws a:visited { width: 205px; height: 55px; overflow: hidden; background: url(../images/button-nieuws.gif) no-repeat 0 0; text-indent: -99999px; display: block; } #hoofdmenu #bNieuws a:hover { background: url(../images/button-nieuws.gif) no-repeat 0 -55px; } #hoofdmenu #bNieuws a:active { background: url(../images/button-nieuws.gif) no-repeat 0 -110px; } #container #content #nav #hoofdmenu li ul.submenu { list-style: none; } #container #content #nav #hoofdmenu li ul.submenu li { border-bottom: 1px solid #c3cce4; border-top: 1px solid #fff; text-indent: 0; margin: 0; } #container #content #nav #hoofdmenu li ul.submenu li a:link, #container #content #nav #hoofdmenu li ul.submenu li a:visited { background-image: url(none); background-color: #e7ebf5; width: 185px; height: 21px; text-indent: 0px; font: bold 12px Arial, Helvetica, sans-serif; color: #576fb2; padding: 8px 0 0 20px; text-decoration: none; } #container #content #nav #hoofdmenu li ul.submenu li a:hover, #container #content #nav #hoofdmenu li ul.submenu li a:active { background-color:#4561ab; color: #fff; } #container #content #nav #hoofdmenu li ul.submenu2 { list-style: none; } #container #content #nav #hoofdmenu li ul.submenu2 li { border-bottom: 1px solid #c7cfe6; border-top: none; margin: 0; } #container #content #nav #hoofdmenu li ul.submenu2 li a:link, #container #content #nav #hoofdmenu li ul.submenu2 li a:visited { background: #fff url(../images/menustreep.gif) repeat-y 0 0; color: #4561ab; font: bold 12px Arial, Verdana, sans-serif; height: 18px; padding: 4px 0 0 30px; width: 175px; } #container #content #nav #hoofdmenu li ul.submenu2 li a:hover, #container #content #nav #hoofdmenu li ul.submenu2 li a:active { background-color: #ebeef6; } #container #content #nav #hoofdmenu li ul.submenu3 { list-style: none; margin: 0 0 0 16px; border-left: 1px solid #8799c9; } #container #content #nav #hoofdmenu li ul.submenu3 li { border: none; } #container #content #nav #hoofdmenu li ul.submenu3 li a:link, #container #content #nav #hoofdmenu li ul.submenu3 li a:visited { background: url(../images/streep-blauw.gif) no-repeat 0px 8px; padding: 2px 0 0 15px; font: bold 11px Tahoma, Arial, Verdana, sans-serif; } #container #content #nav #hoofdmenu li ul.submenu3 li a:hover, #container #content #nav #hoofdmenu li ul.submenu3 li a:active { text-decoration: underline; } #container #content #nav #hoofdmenu li ul.submenu4 { list-style: none; } #container #content #nav #hoofdmenu li ul.submenu4 li a:link, #container #content #nav #hoofdmenu li ul.submenu4 li a:visited { background-image: none; font: normal 11px Tahoma, Arial, Verdana, sans-serif; color: #20419b; text-decoration: none; padding: 1px 0 1px 25px; } #container #content #nav #hoofdmenu li ul.submenu4 li a:hover, #container #content #nav #hoofdmenu li ul.submenu4 li a:active { color: #b70b4d; font-weight: bold; text-decoration: none; } #container #content #nav #hoofdmenu li ul.submenu5 { list-style: none; } #container #content #nav #hoofdmenu li ul.submenu5 li a:link, #container #content #nav #hoofdmenu li ul.submenu5 li a:visited { font: normal 10px Tahoma, Arial, Verdana, sans-serif; text-decoration: underline; color: #b70b4d; padding: 1px 0 1px 32px; } #container #content #nav #hoofdmenu li ul.submenu5 li a:hover, #container #content #nav #hoofdmenu li ul.submenu5 li a:active { background: url(../images/rodepijl.gif) no-repeat 32px 5px; font: bold 10px Tahoma, Arial, Verdana, sans-serif; color: #b70b4d; text-decoration: none; padding: 1px 0 1px 40px; } #nav #extraMenu { margin: 15px 0 0 0; } #nav #extraMenu .kopEXTRA { background: #9dacd3 url(../images/pijl-extramenu.gif) no-repeat 14px 14px; width: 175px; height: 24px; font: bold 14px Arial, Verdana, sans-serif; padding: 8px 0 0 30px; color: #c5d0ed; } #nav #extraMenu li { font: normal 14px Arial, Verdana, sans-serif; background: url(../images/blauwerondje.gif) no-repeat 15px 6px; list-style: none; padding: 0 0 0 28px; margin: 7px 0 0 0; } #nav #extraMenu li a:link, #nav #extraMenu li a:visited { color: #3755a5; text-decoration: none; } #nav #extraMenu li a:hover, #nav #extraMenu li a:active { text-decoration: underline; } |
en de html
HTML:
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
| <div id="nav"> <ul id="hoofdmenu"> <li id="bThema"><a href="#">Informatie over de Thema's in Zeeland</a> <ul class="submenu"> <li id=""><a href="#">Kust & water</a></li> <li id=""><a href="#">Toerisme & Recreatie</a> <ul class="submenu2"> <li id=""><a href="#">Fietsen in Zeeland</a> <ul class="submenu3"> <li id=""><a href="#">Fietsknooppuntsystemen</a> <ul class="submenu4"> <li id=""><a href="#">Quisque a ante eu</a> <ul class="submenu5"> <li id=""><a href="#">Maecenas luctus</a></li> </ul> </li> </ul> </li> </ul> </li> <li id=""><a href="#">Musea</a></li> </ul></li> </ul></li> </ul></li> </ul> <div id="extraMenu"> <div class="kopEXTRA">Extra<span class="cChange">menu</span></div> <ul> <li><a href="#">Contact</a></li> </ul> </div> |
[ Voor 130% gewijzigd door Verwijderd op 12-02-2007 11:32 ]