Check alle échte Black Friday-deals Ook zo moe van nepaanbiedingen? Wij laten alleen échte deals zien

Dropdown-menu - In FF goed in IE fout

Pagina: 1
Acties:
  • 145 views sinds 30-01-2008
  • Reageer

  • mklcln
  • Registratie: December 2004
  • Laatst online: 07:54
Hallo,

Ben bezig met site. Nu heb ik het volgende probleem ik krijg in IE het dropdown-menu niet naar voorgrond.

Voorbeeldje:
http://verkoop.it-prospect.nl/xpackd/

Code 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
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
 
/***** Algemeen *****/
html, body
{
    margin: 0px;
    padding: 0px;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
* { padding: 0px; margin: 0px;}
#content {
    font: 10px Arial;
    text-decoration: none;
    color: #494848;
}
body, a, p, #menu, #footer{
    font: 10px Arial;
    text-decoration: none;
    color: #fff;
}
input.type {
    font: 10px Arial;
    color: #494848;
    border: 1px solid #000;
    height: 18px;
    width: 127px;
    vertical-align:middle;
}
fieldset { border: 0; }

/***** Layout *****/
div#header
{
    top: 0px;
    height: 130px;
    width: 100%;
    padding-top: 22px;
    background: #FFF url('../images/header_bg.gif') repeat-x top;

}
#logo {
    position: relative;
    top: 4px;
    left: 65px;
    bottom: 7px;
} 
div#menu
{
    position: absolute;
    margin-top: 130px;
    top: 0px;
    height: 24px;
    width: 100%;
    background: #FFF url('../images/menu_bg.gif') repeat-x;
    border: 1px solid #000;
}
div#content
{
    top: 0px;
    bottom: 0px;
    margin-top: 156px;
    margin-bottom: 100px;
    width: 100%;
}
div#footer
{
    background: url(../images/footer_bg.gif) repeat-x;
    height: 60px;
    width: 100%;
        position: absolute; 
    bottom: 0;
}
/***** Menu *****/
#nav, #nav ul { /* all lists */
    padding: 0;
    margin: 0;
    list-style: none;
    line-height: 1;
}
#nav a { display: block; width: 10em; }
#nav li { /* all list items */
    padding-top: 5px; 
    padding-left: 10px; 
    padding-right: 10px;
    float: left;
    width: 10em; /* width needed or else Opera goes nuts */
}
#nav li ul { /* second-level lists */
    position: absolute;
    background: #454545;
    border: 1px solid #000;
    width: 150px;
    left: -999em; /* using left instead of display to hide menus because display: none isn't read by screen readers */
    z-index: 100;
}
#nav li:hover ul, #nav li.sfhover ul { /* lists nested under hovered list items */
    left: auto;
}
li.separator { 
    background: url(../images/menu_scheiding.gif) no-repeat; 
    width: 2px;
    height: 24px;
    font-size: 0px;
}
li.menu_left { width: 50px; font-size: 0px;}
li.menu_right { width: 20px; font-size: 0px;}
/***** Inhoud *****/
h1 {
    width: 100%;
    height: 23px;
    text-indent: 10px;
    border-bottom: 1px solid #d1d1d1;
    margin-bottom: 1px;
    cursor: pointer;
    background: #000;
}
h1 a {
    display: block;
    background: #00aeef;
    line-height: 23px;
    font-size: 10px;
    color: #fff;
    outline: none;  
}
h1 a:active, a.active {
    border-bottom: 1px solid #d1d1d1;
    background: #00aeef;
}
h1 a, h1 a:link, h1 a:visited, h1 a:hover, h1 a:active {
    font-weight: bold;
    text-decoration: none;
    color: #fff;
}
.accordion p {
    border: 1px solid #eaeaea;
    background: #f4f4f4;
    padding: 10px 6px 15px 6px;
    color:#494848;
}
/***** Login *****/
div.login {
    background: #f4f4f4;
    padding: 5px;
    font: 10px Arial;
    color: #494848;
    width:228px;
    border: 1px solid #eaeaea;
}
/***** Keuze *****/
div.keuze {
    background: #f4f4f4;
    padding: 5px;
    font: 10px Arial;
    color: #494848;
    width:228px;
    border: 1px solid #eaeaea;
}
font.kop {
    font: 12px Arial;
    font-weight: bold;
    color: #494848;
}
/***** Footer *****/
#copyright {
    padding-left: 15px;
    margin: 10px;
    color: #fff;
    float: left;
    text-align: left;
}
#links {
    padding-right: 20px;
    margin: 10px;
    color: #fff;
    text-align: right;
    float: right;
}
 

  • kunnen
  • Registratie: Februari 2004
  • Niet online
In FF goed? Ik kan niet op de menu's klikken, ze verdwijnen wanneer ik met mijn muis erover wil gaan.

  • mklcln
  • Registratie: December 2004
  • Laatst online: 07:54
Dat moet nog fixen maar bedoel eigenlijk in IE komen ze niet naar de voorgrond.

  • Xer0X
  • Registratie: Januari 2003
  • Laatst online: 05-11 07:09

Xer0X

Gotha know??

Hier hetzelfde

  • PierreG
  • Registratie: Oktober 2006
  • Laatst online: 20-11 15:56
In opera verdwijnen de menu's ook wanneer ik met mijn muis erover wil gaan. Ik denk niet dat je het probleem bij IE moet zoeken.

  • disjfa
  • Registratie: April 2001
  • Laatst online: 04-11 11:05

disjfa

be

gewoon niet alles absoluut positioneren.

disjfa - disj·fa (meneer)
disjfa.nl


  • mklcln
  • Registratie: December 2004
  • Laatst online: 07:54
disjfa schreef op zaterdag 12 januari 2008 @ 16:06:
gewoon niet alles absoluut positioneren.
Lag inderdaad aan 2 positions deze heb ik nu weggehaald en het werkt.
Thanks!

Heb tevens nog een vraag.
Weet iemand hoe ik submenu onder de zwarte balk kan krijgen zonder dat menu telkens verdwijnt
Had voorheen namelijk margin-top toegevoegd maar dit was niet goed.

[ Voor 29% gewijzigd door mklcln op 12-01-2008 16:14 ]


  • MsG
  • Registratie: November 2007
  • Laatst online: 14:39

MsG

Forumzwerver

Misschien nog een tip: Alleen als je expliciet over de tekst zelf heen gaat, of de rechterkant van de tekst tot aan de volgende knop, komt het menu. Als je het linkerknopgedeelte voor de tekst aan mouse-over-'d, gebeurt er niks, misschien handiger om het menu te laten verschijnen als je over de knop zelf al gaat.

Denk om uw spatiegebruik. Dit scheelt Tweakers.net kostbare databaseruimte! | Groninger en geïnteresseerd in Domotica? Kom naar DomoticaGrunn


  • 7.01D
  • Registratie: Oktober 2006
  • Laatst online: 28-08-2009

7.01D

Smells Like Team America

dpz schreef op zaterdag 12 januari 2008 @ 16:11:
Heb tevens nog een vraag.
Weet iemand hoe ik submenu onder de zwarte balk kan krijgen zonder dat menu telkens verdwijnt
Had voorheen namelijk margin-top toegevoegd maar dit was niet goed.
Padding-top misschien, padding valt immers binnen het element en margin erbuiten. Zaken als :hover werken dus wel op de padding, maar niet op de margin.

-- einde bericht --

Pagina: 1