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

[css] uitklapmenu

Pagina: 1
Acties:

  • the_cyberspace
  • Registratie: Juni 2004
  • Niet online
Ik ben bezig om een menuutje in elkaar te steken met css. Maar ik loop tegen een probleem aan waar ik de hele avond al mee bezig ben om het op te lossen maar ik kan de oplossing maar niet vinden.

Het gaat om dit menu: klik
En hier vind je de css file: klik

Oke, nu het probleem. Zodra je op een menu item gaat staan met je muis zie je een uitklap menuutje verschijnen en hier begint mijn probleem. Het menuutje opent niet helemaal zoals ik wil, het springt iets teveel naar rechts open namelijk terwijl het de bedoeling is dat er links en rechts geen verschil is te zien.
En de eerste hyperlink in het uitklapmenu heeft bovenin geen border heeft terwijl dit wel mijn bedoeling is.

Iemand die me uit de brand kan helpen? Want ik zie door de bomen het bos even niet meer... ;)

"Sommige mensen zeggen dat ik gek ben, maar gekken horen toch thuis in het gekkenhuis, of ben ik nou gek??"


  • To_Tall
  • Registratie: September 2004
  • Laatst online: 15-11 09:01
Ik heb zelf deze website ooit eens gemaakt...
http://web.archive.org/we...http://www.ho-yellow.com/

en zelfde probleem gehad.
Hier mijn style sheet

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
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
206
207
208
209
210
211
body {
    background-color: #030040;
}

.frame {
    background-color : #FDFDE6;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-style: normal;
    color: #000066;
    text-align: center;
}

.style2 {
    background-color : #FDFDE6;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-style: normal;
    color: #000066;
    letter-spacing: normal;
    white-space: normal;
    padding: 5px;
    height: auto;
    width: 99%;
    margin: 5px;
    border-top: 2px ridge #000066;
    border-right: 2px ridge #000066;
    border-bottom: 2px ridge #000066;
    border-left: 2px ridge #000066;
}

.note {
    font-size: 18px;
    color: #666666;
    font-style: normal;
    font-weight: bold;
    
}

#menu {
background-color : #375BA3; 
color:black;
position : absolute; 
top : 10px; 
left : 10px; 
visibility : hidden; 
width : 150px; 
border-bottom-color : white;
border-bottom-style : solid;
border-bottom-width : 1px; 
} 
#menu2 {
background-color : #375BA3; 
color:black;
position : absolute; 
top : 10px; 
left : 10px; 
visibility : hidden; 
width : 150px; 
border-bottom-color : white;
border-bottom-style : solid;
border-bottom-width : 1px; 
} 
#menu3 {
background-color : #375BA3; 
color:black;
position : absolute; 
top : 10px; 
left : 10px; 
visibility : hidden; 
width : 150px; 
border-bottom-color : white;
border-bottom-style : solid;
border-bottom-width : 1px; 
} 
#menu4 {
background-color : #375BA3; 
color:black;
position : absolute; 
top : 10px; 
left : 10px; 
visibility : hidden; 
width : 150px; 
border-bottom-color : white;
border-bottom-style : solid;
border-bottom-width : 1px; 
} 
#menu5 {
background-color : #375BA3; 
color:black;
position : absolute; 
top : 10px; 
left : 10px; 
visibility : hidden; 
width : 150px; 
border-bottom-color : white;
border-bottom-style : solid;
border-bottom-width : 1px; 
} 

#menu6 {
background-color : #375BA3; 
color:black;
position : absolute; 
top : 10px; 
left : 10px; 
visibility : hidden; 
width : 150px; 
border-bottom-color : white;
border-bottom-style : solid;
border-bottom-width : 1px; 
} 

#navbar {
position : relative;
} 
A.nav1 {
background-color : #FDFDE6; 
color : green       ;
font : normal 8pt Geneva, Arial, Helvetica, sans-serif; 
text-decoration : none; 
border-bottom : 1px solid #C9C800;
border-left : 1px solid #C9C800; 
border-top : 1px solid #C9C800; 
border-right : 1px solid #C9C800; 
padding-left : 0; 
padding-right : 0; 
padding-top : 0; 
padding-bottom : 0; 
text-align : center; 
width : 95%; 
height: 18px;
display : block; 
} 
A.nav1:hover {
background-color : #FDFDE6;
color: green;
font : normal 8pt verdana, sans-serif;
text-decoration : none;
border-bottom : 1px solid C9C800;
border-left : 1px solid C9C800; 
border-top : 1px solid C9C800;
border-right : 1px solid C9C800; 
padding-left : 0; 
padding-right : 0; 
padding-top : 0; 
padding-bottom : 0; 
text-align : center; 
vertical-align : middle;
width : 95%;
height: 18px;
display : block; 
} 
A.menulink1 {
background-color : #5A30F6; 
color: black;
font : normal 8pt verdana, sans-serif; 
text-decoration : none; 
border-bottom : 1px solid black;
border-left : 1px solid black; 
border-top : 1px solid black; 
border-right : 1px solid black; 
padding-left : 0; 
padding-right : 0; 
padding-top : 0; 
padding-bottom : 0; 
width : 150px; 
height: 18px;
display : block; 
} 
A.menulink1:hover {
background-color : #5A30F6;
color:#ffffff;
font : normal 8pt verdana, sans-serif; 
text-decoration : none; 
border-bottom : 1px solid black; 
border-left : 1px solid black; 
border-top : 1px solid black; 
border-right : 1px solid black; 
padding-left : 0; 
padding-right : 0; 
padding-top : 0; 
padding-bottom : 0; 
width : 150px; 
height: 18px;
display : block; 
} 

.menutitle {
background-color : #D7D7D7; 
color: #375BA3;
font : normal 8pt verdana, sans-serif; 
text-decoration : none; 
border-bottom : 1px solid black;
border-left : 1px solid black; 
border-top : 1px solid black; 
border-right : 1px solid black; 
padding-left : 0; 
padding-right : 0; 
padding-top : 0; 
padding-bottom : 0; 
width : 150px; 
height: 18px;
display : block; 
} 

INPUT,SELECT,TEXTAREA {
background-color : #ffffff; 
color:#375BA3;
font : bold 8pt verdana, sans-serif; 
}

A Soldiers manual and a pair of boots.


  • bakakaizoku
  • Registratie: Januari 2002
  • Laatst online: 20-11 10:59
Wellicht niet de beste oplossing,

Cascading Stylesheet:
1
2
3
4
5
6
7
.navcontainer ul ul {
    width: 150px;
    height: 19px;
    float: left;
    position: relative;
    left: -1px;
}

rm -rf ~/.signature


  • the_cyberspace
  • Registratie: Juni 2004
  • Niet online
mattttt schreef op zaterdag 02 februari 2008 @ 22:56:
Wellicht niet de beste oplossing,

Cascading Stylesheet:
1
2
3
4
5
6
7
.navcontainer ul ul {
    width: 150px;
    height: 19px;
    float: left;
    position: relative;
    left: -1px;
}
Of het netjes is.. ja dat is de vraag, maar het 1e probleem is ermee opgelost! dank! :)

EDIT: En ook het probleem van de border is nu opgelost :)

[ Voor 5% gewijzigd door the_cyberspace op 03-02-2008 08:39 ]

"Sommige mensen zeggen dat ik gek ben, maar gekken horen toch thuis in het gekkenhuis, of ben ik nou gek??"