Probleem menu

Gestart doorVadid14 reacties65 weergaven

15 berichten · pagina 1 van 1

Vadid

Lid · Topicstarter

Berichten
2.318
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hi,

Ik ben een beetje aan het klooien met het menu, maar net heb ik de dropdown eruit gehaald maar nu doen bepaalde paginas erg raar..

Dit is de code die ik nu heb:
Spoiler tonen
Codeblok (voorbeeld.php):
1
2
3
4
5
6
7
8
9
10


Meestal staat contact onder home, en de rest gewoon goed. Je kan zelf een kijkje nemen op: www.davidhol.nl

Alvast bedankt,
David
0
Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Wat bedoel je met:

maar nu doen bepaalde paginas erg raar
0
Vadid

Lid · Topicstarter

Berichten
2.318
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Precies zoals het er staat, bepaalde paginas doen raar met en door het menu.
0
Stef

Lid

Berichten
10.150
Reputatie
2
Punten
0,00
Lid sinds
Laatst gezien
Hier kunnen wij niks mee. Geef je CSS.
0
Vadid

Lid · Topicstarter

Berichten
2.318
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Spoiler tonen
Codeblok (voorbeeld.php):
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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756

/* ----- General Styling ----- */

body {
font-family: Arial, sans-serif;
}

.container, #latest_works, #bottom_content, #download {
margin: auto;
width: 1000px;
}

.bold_text {
font-weight: bold;
}

.blue_text {
color: #2aacc8;
font-size: 15px;
}

/* ----- General Styling ----- */

/* ----- Header Styling ----- */

#header {
background: #e8ebf1;
height: 120px;
}

h1 {
float: left;
margin-top: 37px;
}

h1 a {
background: url(../images/logo.png) no-repeat;
display: block;
height: 37px;
text-indent: -9999px;
width: 148px;
}

/* ----- Header Styling ----- */

/* ----- Main Navigation Styling ----- */

#main_menu {
float: right;
margin-top: 54px;
}

.first_list {
float: left;
margin: 0 14px;
}

.main_menu_first {
color: #000;
font-size: 13px;
font-weight: bold;
padding: 8px 8px;
text-transform: uppercase;
}

.main_menu_first:hover {
border-top: 5px solid #2aacc8;
}

.with_dropdown {
position: relative;
}

.with_dropdown li a {
display: block;
}

.with_dropdown ul {
background: #fff;
border-bottom: 5px solid #2aacc8;
padding: 12px 0;
position: absolute;
top: 24px;
visibility: hidden;
width: 197px;
}

.first_list:hover.first_list ul {
visibility: visible;
}

.with_dropdown .main_menu_first {
background: url(../images/arrow_down.png) no-repeat 92%;
padding-right: 23px;
}

.with_dropdown:hover .main_menu_first {
background: #fff url(../images/arrow_down.png) no-repeat 92%;
border-top: 5px solid #2aacc8;
color: #2aacc8;
}

.second_list {
margin: 0 5px;
padding: 10px;
}

.second_list_border {
border-bottom: 1px solid #e7e7e7;
}

.main_menu_second {
color: #000;
font-size: 13px;
text-transform: capitalize;
}

.main_menu_second:hover {
color: #2aacc8;
}

.main_current {
border-top: 5px solid #2aacc8;
}

/* ----- Main Navigation Styling ----- */

/* ----- Slideshow Styling ----- */

#slideshow_area {
background: #81e4ed url(../images/banner_shadow.png) repeat-x;
border-top: 1px solid #6ec2ca;
padding: 19px 0 28px 0;
}

#mid_content {
border-bottom: 1px solid #d9d9d9;
background: #e8ebf1;
height: 300px;
}

#slideshow_pagination {
margin: 10px auto;
width: 160px;
}

#slideshow_pagination li {
float: left;
margin: 0 9px;
}

#slideshow_pagination a {
background: url(../images/grey_button.png) no-repeat;
display: block;
height: 14px;
width: 14px;
}

#slideshow_pagination a.current {
background: url(../images/white_button.png) no-repeat;
}

/* ----- Slideshow Styling ----- */

/* ----- Home Mid Content Styling ----- */

.mid_content_info {
float: left;
font-size: 13px;
margin-top: 60px;
width: 220px;
}

.mid_content_info h2 {
font-size: 15px;
font-weight: bold;
height: 28px;
margin-bottom: 15px;
padding: 12px 0 0 59px;
}

.mid_content_info p {
color: #363636;
line-height: 20px;
margin-bottom: 22px;
}

.mid_content_info a {
color: #2aacc8;
}

.mid_content_info a img {
margin: 0 8px 1px 0;
}

.mid_content_info a:hover {
text-decoration: underline;
}

.mid_content_space {
margin-right: 40px;
}

#clean {
background: url(../images/pen_icon.png) no-repeat left;
}

#responsive {
background: url(../images/screen_icon.png) no-repeat left;
}

#fully {
background: url(../images/layer_icon.png) no-repeat left;
}

#ready {
background: url(../images/paperplane_icon.png) no-repeat left;
}

#latest_works {
clear: left;
}

#latest_works h3 {
background: url(../images/cursor_icon.png) no-repeat left;
float: left;
font-size: 15px;
font-weight: bold;
height: 16px;
margin: 19px 0 15px 0;
padding: 8px 0 0 38px;
}

#carousel_nav {
float: right;
margin-top: 20px;
}

#carousel_nav a {
margin-left: 6px;
}

#carousel_wrapper {
border-top: 1px solid #dfe1e5;
border-bottom: 1px solid #dfe1e5;
clear: left;
height: 220px;
}

#carousel_wrapper li {
float: left;
margin: 30px 15px;
}

/* ----- Carousel and Portfolio Styling ----- */

#carousel_wrapper li, #portfolio_list li {
height: 160px;
position: relative;
width: 220px;
}

#carousel_wrapper li a img, #portfolio_list li a img {
bottom: 0;
position: absolute;
visibility: hidden;
}

#carousel_wrapper li:hover a img, #portfolio_list li:hover a img {
visibility: visible;
}

#work01 {
background: url(../images/latest_work01.jpg) no-repeat;
}

#work02 {
background: url(../images/latest_work02.jpg) no-repeat;
}

#work03 {
background: url(../images/latest_work03.jpg) no-repeat;
}

#work04 {
background: url(../images/latest_work04.jpg) no-repeat;
}

#work05 {
background: url(../images/latest_work05.jpg) no-repeat;
}

#work06 {
background: url(../images/latest_work06.jpg) no-repeat;
}

#work07 {
background: url(../images/latest_work07.jpg) no-repeat;
}

#work08 {
background: url(../images/latest_work08.jpg) no-repeat;
}

#work09 {
background: url(../images/latest_work09.jpg) no-repeat;
}

#work10 {
background: url(../images/latest_work10.jpg) no-repeat;
}

#work11 {
background: url(../images/latest_work11.jpg) no-repeat;
}

#work12 {
background: url(../images/latest_work12.jpg) no-repeat;
}

#work13 {
background: url(../images/latest_work13.jpg) no-repeat;
}

#work14 {
background: url(../images/latest_work14.jpg) no-repeat;
}

#work15 {
background: url(../images/latest_work15.jpg) no-repeat;
}

#work16 {
background: url(../images/latest_work16.jpg) no-repeat;
}

/* ----- Carousel and Portfolio Styling ----- */

#testimonials {
clear: left;
float: left;
width: 430px;
}

#testimonials h3 {
background: url(../images/speechcloud_icon.png) no-repeat left;
font-size: 15px;
font-weight: bold;
height: 18px;
margin: 19px 0 15px 0;
padding: 5px 0 0 38px;
}

#testimonials p {
color: #363636;
font-size: 14px;
line-height: 24px;
}

.testimonial_name {
font-style: italic;
font-weight: bold;
}

#clients {
float: right;
margin-bottom: 40px;
}

#clients h3 {
background: url(../images/people_icon.png) no-repeat left;
font-size: 15px;
font-weight: bold;
height: 16px;
margin: 19px 0 15px 0;
padding: 4px 0 0 38px;
}

#clients ul {
background: #e8ebf1;
height: 200px;
width: 480px;
}

#clients img {
float: left;
margin: 1px;
}

#download {
background: #e8fcfe;
border: 1px solid #81e4ed;
clear: both;
height: 78px;
padding: 30px 30px;
width: 940px;
}

#download p {
color: #363636;
float: left;
font-size: 16px;
line-height: 26px;
width: 608px;
}

#download a {
background: url(../images/download_button.png) no-repeat;
display: block;
color: #0d0707;
font-size: 18px;
font-weight: bold;
float: right;
height: 42px;
margin: 8px 8px 0 0;
padding: 22px 0 0 72px;
width: 172px;
}

#download a:hover {
color: #fff;
}

/* ----- Home Mid Content Styling ----- */

/* ----- Portfolio Content Styling ----- */

#portfolio_area {
background: url(../images/banner_shadow.png) repeat-x;
border-top: 1px solid #d9d9d9;
padding-top: 38px;
}

#portfolio {
background: url(../images/paintbrush_icon.png) no-repeat;
font-size: 15px;
font-weight: bold;
height: 19px;
margin-bottom: 12px;
padding: 6px 0 0 40px;
}

#portfolio_menu {
border-bottom: 1px solid #dfe1e5;
border-top: 1px solid #dfe1e5;
margin-bottom: 25px;
padding-bottom: 20px;
}

#portfolio_menu ul {
padding: 20px 0;
}

#portfolio_menu li, #portfolio_list li {
float: left;
}

#portfolio_menu li {
margin-right: 2px;
}

#portfolio_menu a {
color: #000;
font-size: 14px;
padding: 7px 18px;
}

#portfolio_menu a:hover {
background: #81e4ed;
}

.portfolio_menu_current {
background: #81e4ed;
}

#portfolio_list {
height: 760px;
}

#portfolio_list li {
margin: 15px 15px;
}

#portfolio_pagination {
border-top: 1px solid #dfe1e5;
clear: left;
margin-top: 30px;
padding: 25px 0;
}

#portfolio_pagination ul {
margin: auto;
width: 233px;
}

#portfolio_pagination li {
float: left;
margin: 0 2px;
}

#portfolio_pagination a {
color: #000;
display: block;
font-size: 14px;
padding: 6px 9px;
}

#portfolio_pagination a:hover {
background: #81e4ed;
}

a#pagination_next, a#pagination_end {
background: #e8ebf1;
}

a#pagination_next:hover, a#pagination_end:hover {
background: #bfc1c6;
}

#pagination_end {
margin-left: 22px;
}

.pagination_current {
background: #81e4ed;
}

/* ----- Portfolio Content Styling ----- */

/* ----- Contact Content Styling ----- */

#contact_area {
background: url(../images/banner_shadow.png) repeat-x;
border-top: 1px solid #d9d9d9;
padding-top: 38px;
}

#contact {
background: url(../images/envelope_icon.png) no-repeat;
font-size: 15px;
font-weight: bold;
height: 15px;
margin: 6px 0 17px 0;
padding: 2px 0 0 40px;
}

#contact_info {
border-top: 1px solid #dfe1e5;
padding-top: 10px;
}

#contact_info_left {
float: left;
margin: 27px 0 33px 0;
width: 574px;
}

#contact_info p {
font-size: 14px;
line-height: 16px;
margin-bottom: 20px;
}

#contact_info_left p a:hover {
text-decoration: underline;
}

#contact_info_right {
float: right;
margin-top: 30px;
}

#location_map {
background: #e8fcfe;
border: 1px solid #81e4ed;
margin: 0 20px 36px 0;
padding: 20px;
}

#location_map h3 {
font-size: 14px;
font-weight: bold;
margin-bottom: 20px;
}

#location_map img {
border: 5px solid #fff;
}

#address h3 {
font-size: 15px;
font-weight: bold;
margin-bottom: 20px;
}

#address p {
color: #363636;
}

/* ----- Contact Content Styling ----- */

/* ----- Form Styling ----- */

#contact_form {
width: 480px;
}

#contact_form li {
font-size: 14px;
padding: 2px 0px;
}

#contact_form label {
display: block;
margin: 12px 0;
}

#contact_form input {
height: 35px;
}

#contact_form input:focus, #contact_form textarea:focus {
border: 1px solid #2aacc8;
}

#contact_form input, #contact_form textarea {
border: 1px solid #b4bac5;
}

#contact_form input[type="submit"] {
background: url(../images/submit_button.png) no-repeat;
border: none;
cursor: pointer;
font-size: 18px;
font-weight: bold;
height: 64px;
margin-top: 20px;
padding: 0 0 6px 30px;
width: 160px;
}

#contact_form input[type="submit"]:hover {
color: #fff;
}

/* ----- Form Styling ----- */

/* ----- Footer Styling ----- */

#footer {
background: #e8ebf1;
border-top: 1px solid #d9d9d9;
clear: both;
height: 320px;
margin-top: 40px;
}

#footer p, #footer a {
color: #363636;
font-size: 14px;
}

#footer h4 {
font-size: 15px;
font-weight: bold;
text-transform: uppercase;
margin: 0 0 21px 0;
}

.footer_info {
float: left;
margin: 32px 0 40px 0;
}

#footer_about, #footer_explore, #footer_browse {
margin-right: 64px;
}

#footer_about {
width: 238px;
}

#footer_about p, #footer_contact p, #copyright {
line-height: 17px;
}

#footer_explore li, #footer_browse li {
margin: 12px 0;
}

#footer_explore li a, #footer_browse li a {
text-transform: capitalize;
}

#footer_explore li a:hover, #footer_browse li a:hover {
color: #2aacc8;
}

#footer_connect {
float: right;
width: 213px;
}

#footer_connect h4 {
margin-left: 24px;
}

#footer_connect a {
display: block;
float: left;
height: 51px;
margin: 0 0 10px 18px;
text-indent: -9999px;
width: 53px;
}

#facebook {
background: url(../images/facebook_icon.png) no-repeat;
}

#dribbble {
background: url(../images/dribbble_icon.png) no-repeat;
}

#pinterest {
background: url(../images/pinterest_icon.png) no-repeat;
}

#linkedin {
background: url(../images/linkedin_icon.png) no-repeat;
}

#skype {
background: url(../images/skype_icon.png) no-repeat;
}

#sharethis {
background: url(../images/sharethis_icon.png) no-repeat;
}

p#copyright {
clear: both;
float: left;
font-size: 13px;
}

#footer_logo {
background: url(../images/logo.png) no-repeat;
display: block;
float: right;
height: 37px;
text-indent: -9999px;
width: 148px;
}

/* ----- Footer Styling ----- */
0
Berichten
12.729
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Je begint je eerste menu item met een class en de
  • tags, en vervolgens niet meer en sluit je uiteindelijk bij de laatste wel weer af met een .

    Codeblok (voorbeeld.php):

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10


    Zo hoort hij te werken, maar waarom heb je bij je eerste menu item een class gebruikt?
    0
    Vadid

    Lid · Topicstarter

    Berichten
    2.318
    Reputatie
    0
    Punten
    0,00
    Lid sinds
    Laatst gezien
    Patricka schreef:
    Je begint je eerste menu item met een class en de
  • tags, en vervolgens niet meer en sluit je uiteindelijk bij de laatste wel weer af met een .
    Codeblok (voorbeeld.php):

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10


    Zo hoort hij te werken, maar waarom heb je bij je eerste menu item een class gebruikt?

    Thanks! Ben geen ster in HTML en CSS, zodoende wink
    0
    Berichten
    12.729
    Reputatie
    0
    Punten
    0,00
    Lid sinds
    Laatst gezien
    Vadid schreef:
    Thanks! Ben geen ster in HTML en CSS, zodoende wink
    Dat maakt helemaal niet uit, daarvoor is dit sub-forum en zijn wij er. Maar kun je mijn vraag nog even beantwoorden?

    Ben wel benieuwd waarom je daar een class neerzet.smile
    0
    Vadid

    Lid · Topicstarter

    Berichten
    2.318
    Reputatie
    0
    Punten
    0,00
    Lid sinds
    Laatst gezien
    Patricka schreef:
    Eerdere citaten tonen
    Vadid schreef:
    Thanks! Ben geen ster in HTML en CSS, zodoende wink
    Dat maakt helemaal niet uit, daarvoor is dit sub-forum en zijn wij er. Maar kun je mijn vraag nog even beantwoorden?

    Ben wel benieuwd waarom je daar een class neerzet.smile
    Ik heb het zelf niet gebased dus ik zou het niet weten bloos
    0
    Berichten
    12.729
    Reputatie
    0
    Punten
    0,00
    Lid sinds
    Laatst gezien
    Oh oké, heb je online voorbeeld?
    0
    Vadid

    Lid · Topicstarter

    Berichten
    2.318
    Reputatie
    0
    Punten
    0,00
    Lid sinds
    Laatst gezien
    Patricka schreef:
    Oh oké, heb je online voorbeeld?
    Staat in de OP toch? Heb het menu nog niet aangepast, kom zo pas thuis smile
    Oplossing gekregen van Patricka, alleen nu staat het menu onder elkaar ipv. naast elkaar
    0
    Berichten
    12.729
    Reputatie
    0
    Punten
    0,00
    Lid sinds
    Laatst gezien
    Probeer dit eens:

    Codeblok (voorbeeld.php):

    1
    2
    3

    #main_menu li a {
    float:left;
    }

    Er moet namelijk ergens een float bij.
    0
    Vadid

    Lid · Topicstarter

    Berichten
    2.318
    Reputatie
    0
    Punten
    0,00
    Lid sinds
    Laatst gezien
    Patricka schreef:
    Probeer dit eens:
    Codeblok (voorbeeld.php):

    1
    2
    3

    #main_menu li a {
    float:left;
    }

    Er moet namelijk ergens een float bij.

    Ook niet, voordat ik de dropdowns verwijderden deed hij het gewoon nog.. raar dit confused
    Opgelost! smile
    0
    Berichten
    10.421
    Reputatie
    4
    Punten
    0,00
    Lid sinds
    Laatst gezien
    En de oplossing?
    0
    Vadid

    Lid · Topicstarter

    Berichten
    2.318
    Reputatie
    0
    Punten
    0,00
    Lid sinds
    Laatst gezien
    Aarclay schreef:
    En de oplossing?
    Gewoon het oude menu vergelijken met deze, er miste op een paar plekjes een aantal codes.
    0

    Jouw reactie

    Deel je idee, stel een vraag of help een ander verder.

    Editor laden…

    Praat mee met de One2xs-community.

    Inloggen om te reageren