Hi there!
Ik zit met een irritant probleempje. Ik heb een <ul> met een sub menu dat uitklapt, nu doet hij het overal prima.
Firefox

IE8

Alleen nu komt het probleem dus bij IE7

Ik weet dat het met een position, of z-index te maken heeft. Maar ik krijg het maar niet voor elkaar..
Heeft iemand enig idee hoe of waar het aan ligt?
Ik gebruik de volgende html layout (php gegenereerd):
En de CSS:
Ik zit met een irritant probleempje. Ik heb een <ul> met een sub menu dat uitklapt, nu doet hij het overal prima.
Firefox

IE8

Alleen nu komt het probleem dus bij IE7

Ik weet dat het met een position, of z-index te maken heeft. Maar ik krijg het maar niet voor elkaar..
Heeft iemand enig idee hoe of waar het aan ligt?
Ik gebruik de volgende html layout (php gegenereerd):
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
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
| <nav class="mainMenu"> <ul> <li class="active"> <a href="/specialismen/lichamelijkmeervoudig-gehandicapt" class="roze">specialismen</a> <ul> <li class="active"> <div> <a href="/specialismen/lichamelijkmeervoudig-gehandicapt" class="roze">> lichamelijk/meervoudig gehandicapt</a> </div> </li> <li> <div> <a href="/specialismen/langdurig-zieken" class="roze">> langdurig zieken</a> </div> </li> <li> <div> <a href="/specialismen/gedrag" class="roze">> gedrag</a> </div> </li> <li> <div> <a href="/specialismen/zeer-moeilijk-lerend" class="roze">> zeer moeilijk lerend</a> </div> </li> </ul> </li> <li> <a href="/professionals/begeleiding-en-advies" class="blauw">professionals</a> <ul> <li> <div> <a href="/professionals/begeleiding-en-advies" class="blauw">> begeleiding & advies</a> </div> </li> <li> <div> <a href="/professionals/trainingen-en-cursussen" class="blauw">> trainingen & cursussen</a> </div> </li> <li> <div> <a href="/professionals/voorlichting-en-presentaties" class="blauw">> voorlichting & presentaties</a> </div> </li> </ul> </li> <li> <a href="/leerlingen-en-ouders/begeleiding-en-advies" class="groen">leerlingen & ouders</a> <ul> <li> <div> <a href="/leerlingen-en-ouders/begeleiding-en-advies" class="groen">> begeleiding & advies</a> </div> </li> </ul> </li> <li> <a href="/website/contact" class="roze">website</a> <ul> <li> <div> <a href="/website/contact" class="roze">> contact</a> </div> </li> </ul> </li> </ul> </nav> <div id="headerImg"> <div class="wrapper"> <div id="headerLines"></div> <div id="headerText"> <h1>Onderwijsadvies en -ondersteuning op maat</h1> </div> <img src="/images/background/l_LG_MGgroot.jpg" alt="Onderwijsadvies en -ondersteuning op maat" /> </div> <div id="colorDivWrapper"> <div id="colorDiv"></div> </div> </div> |
En de CSS:
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
| #headerImg .wrapper{ margin:0 auto; position:relative;} #colorDivWrapper{ height:13px; width:1000px; margin:0 auto; } #colorDiv{ height:13px; width:400px; background-image:url(../images/imgMap.png); background-position:0 -204px; background-repeat:no-repeat; } .wrapper{ width:1000px; margin:27px auto 0; clear: both; position:relative; } .top{ margin:10px auto 0; } header{ width:955px; height:96px; margin:0 auto; } #headerTop{ width:955px; height:40px; } #zoek{ width:180px; height:25px; background-color:#cc0033; font-family:'conduit_itc_lightregular'; font-size:15px; color:#FFF; line-height:24px; float:right;} #zoek label{ padding:0 5px 0 10px; } #zoek input{ width:113px; height:17px; border:none; font-size:12px; padding:0 0 0 3px; font-family:Arial, Helvetica, sans-serif;} #zoek input#btnArrow{ width:12px; height:19px; background: url(../images/imgMap.png) repeat-y -408px 221px; text-indent:-9999px;} #zoek input#btnArrow:hover{ cursor:pointer; } #headerBottom{ width:955px; height:55px; } #logo{ width:160px; height:42px; margin:0 85px 0 0; float:left; background-image:url(../images/imgMap.png); background-repeat:no-repeat;} #logo a{ width:160px; height:42px; text-indent:-9999px; display:block; } nav.mainMenu{ width:auto; height:42px; position: relative; z-index: 100; margin:0 0 0 222px;} nav.mainMenu ul{ margin:0; padding:0; } nav.mainMenu ul li { display:inline-block; *display:inline; zoom:1; font-size:16px; height:42px; line-height:41px; width:auto; background-image:url(../images/imgMap.png); background-position:-208px -3px; background-repeat:no-repeat; padding: 0 10px 0 25px; } nav.mainMenu ul li:hover ul{ visibility:visible; cursor:pointer; overflow:visible;} nav.mainMenu ul li a{ text-decoration:none; color:#cc0033; } /* SUBMENU */ nav.mainMenu ul li ul{ display:block; background-color:#FFFFFF; margin:0px 0 0 -13px; padding: 10px 0 6px; visibility:hidden; overflow:hidden; position:absolute; min-width:77px; } nav.mainMenu ul li ul li{ padding: 0 20px 0 10px; display:block; clear:right; background-image:none; height:33px; } nav.mainMenu ul li ul li div{ border-bottom:dashed 1px #000; height:39px;} nav.mainMenu ul li ul li:last-child div{ border-bottom:none; } nav.mainMenu ul li ul li a{ color:#000; font-size:13px; } #headerImg{ width:100%; height:250px; border-top:#C03 solid 13px; border-bottom:#C03 solid 13px; background-color:#C03; /*background-image:url(../images/afb-headerBack.png); background-repeat:no-repeat; background-position: center center; */ clear:both; } #headerLines{ width:105px; height:231px; right:0; position:absolute; background-image:url(../images/afb-headerLines.png); background-repeat:no-repeat; z-index:100; } #headerText{ width:1000px; height:250px; position:absolute; } #headerText h1{ color:#FFF; position:absolute; bottom:0; right:0; font-family: 'conduit_itc_lightregular'; font-weight:normal; font-size:36px; margin:0 40px 0 0; text-shadow:#000 1px 1px 5px; } #slider{ width:100%; height:250px; overflow:hidden; } |