Ik wil graag het geselecteerde menu een andere kleur geven en het wil me maar niet lukken.
Deze code heb ik tot dus ver:
/* Menu */
#menu-wrapper {
overflow: hidden;
height: 56px;
background: #045FB4;
border-top: 1px solid #3D2729;
}
#menu {
width: 1000px;
height: 55px;
margin: 0px auto;
padding: 0px;
}
#menu ul {
margin: 0;
padding: 10px 0px 0px 0px;
list-style: none;
line-height: normal;
}
#menu li {
float: left;
border-right: 1px solid #000000;
}
#menu a {
display: block;
letter-spacing: 1px;
margin: 0px 10px;
padding: 10px 20px;
text-decoration: none;
text-align: center;
text-transform: uppercase;
font-family: 'Verdana', serif;
font-size: 14px;
font-weight: normal;
color: #FFFFFF;
}
#menu a:hover {
background: #40FF00;
border-radius: 8px;
text-decoration: none;
color: #3D2729;
het hoveren gaat goed,want dan zie ik een andere kleur, maar als ik dan op het menu item klik dan verdwijnt de kleur weer.
Wat doe ik fout?
Groet,
Michel
Deze code heb ik tot dus ver:
/* Menu */
#menu-wrapper {
overflow: hidden;
height: 56px;
background: #045FB4;
border-top: 1px solid #3D2729;
}
#menu {
width: 1000px;
height: 55px;
margin: 0px auto;
padding: 0px;
}
#menu ul {
margin: 0;
padding: 10px 0px 0px 0px;
list-style: none;
line-height: normal;
}
#menu li {
float: left;
border-right: 1px solid #000000;
}
#menu a {
display: block;
letter-spacing: 1px;
margin: 0px 10px;
padding: 10px 20px;
text-decoration: none;
text-align: center;
text-transform: uppercase;
font-family: 'Verdana', serif;
font-size: 14px;
font-weight: normal;
color: #FFFFFF;
}
#menu a:hover {
background: #40FF00;
border-radius: 8px;
text-decoration: none;
color: #3D2729;
het hoveren gaat goed,want dan zie ik een andere kleur, maar als ik dan op het menu item klik dan verdwijnt de kleur weer.
Wat doe ik fout?
Groet,
Michel