Ik heb het probleem dat ik een pull down menu heb gemaakt, maar wanneer je er overheen gaat, verdwijnen bepaalde delen van het menu. Hij hoort de achtergrond te overlappen, maar dat doet hij niet
Nu heb ik een paar topics gevonden en daaruit bleek dat ik een regel moest toevoegen, maar dat wil maar niet werken, terwijl ik precies doe zoals daar staat:
Menu.css
Het gaat dus om die "z-index" die moest worden toegevoegd
Menu.css
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| body { color: #FFFFFF }
.menuBar { position: relative; text-align: center; color: #FFFFFF }
.Bar { float: right; width: 100px; cursor: hand; text-indent: 5px; position: relative;
background-color: #045DA1; text-align: center;
border: 1px solid #0000CC }
.menu { visibility: hidden; width: 150px; line-height: 140%; position: absolute;
background-color: #045DA1; border: thin outset #0000CC }
.menuItem { width: 100%; cursor: hand; line-height: 20px; color: #FFFFFF;
border-bottom: 1px solid white; padding-left: 10px;
padding-right: 15px }
.ItemMouseOver { width: 100%; cursor: hand; color: #FFFFFF; line-height: 20px;
background-color: #045DA1; border-bottom: 1px solid #FFFFFF;
padding-left: 10px; padding-right: 15px; 0px; z-index: 6000000}
.ItemMouseOut { width: 100%; color: #FFFFFF }
.Arrow
{
FLOAT: right;
FONT-FAMILY: Webdings;
POSITION: absolute;
TEXT-ALIGN: left
}
.barOver { float: right; width: 100px; cursor: hand; text-indent: 5px; position: relative;
background-color: #045DA1; text-align: center;
border: 1px ridge #000080 } |
Het gaat dus om die "z-index" die moest worden toegevoegd