Hallo.. im cracking my skull here:
HTML
Voorbeeld:
Mn link hoort als active te blijven staan maar het gebeurt niet...
dat is toch waar 'active' voor staat
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
| /********************************************************************************************************/ /* */ /* headermenu + mouseovers */ /* */ /********************************************************************************************************/ #navbar li { float: left; } #navbar a { text-decoration: none; display: block; height: 53px; text-indent: -5000px; background-image: url(../images/navbar.jpg); background-repeat: no-repeat; } /********************************************************************************************************/ #navbar #index { background-position: 0px 0px; width: 106px; } #navbar #index:hover { background-position: 0px -53px; } #navbar #index:active { background-position: 0px -53px; } /********************************************************************************************************/ #navbar #account { background-position: -106px 0px; width: 145px; } #navbar #account:hover { background-position: -106px -53px; } #navbar #account:active { background-position: -106px -53px; } /********************************************************************************************************/ #navbar #artikel { background-position: -251px 0; width: 139px; } #navbar #artikel:hover { background-position: -251px -53px; } #navbar #artikel:active { background-position: -251px -53px; } /********************************************************************************************************/ #navbar #contact{ background-position: -389px 0px; width: 145px; } #navbar #contact:hover { background-position: -389px -53px; } #navbar #contact:active { background-position: -389px -53px; } |
HTML
| <!--- Header menu ---> |
| <div id="headermenu"> |
| <ul id="navbar"> |
| <li><a href="index.php" id="index">index</a></li> |
| <li><a href="profile.php" id="account">account</a></li> |
| <li><a href="voorwerp.php" id="artikel">voorwerp</a></li> |
| <li><a href="help.php" id="contact">help</a></li> |
| </ul> |
| </div> |
| <!--- Einde headermenu ---> |
Voorbeeld:
Mn link hoort als active te blijven staan maar het gebeurt niet...
dat is toch waar 'active' voor staat
[ Voor 20% gewijzigd door Verwijderd op 05-10-2007 10:18 ]