Hi there,
You mean the entire background of sub-menu upon hover? You can achieve that by enhancing that existing CSS to this,
.ondersteuning-color:hover a,
.ondersteuning-color:hover .sub-menu {
background-color: rgba(230, 141, 25, 0.8);
}
.wonen-color:hover a,
.wonen-color:hover .sub-menu {
background-color: rgba(230, 141, 25, 0.8);
}
.opvang-color:hover a,
.opvang-color:hover .sub-menu {
background-color: rgba(210,10,11,0.8);
}
.activering-color:hover a,
.activering-color:hover .sub-menu {
background-color: rgba(10, 157, 210, 0.8);
}
And if you wish to achieve different hover background for sub-menu links, then simply enhance it too, this is just a sample but you don’t have to apply,
.ondersteuning-color:hover > a,
.ondersteuning-color:hover .sub-menu {
background-color: rgba(230, 141, 25, 0.8);
}
.ondersteuning-color .sub-menu a:hover {
background-color: pink;
}
Notice that I add >
on the first selector, this means the CSS only affects the current link of the menu, and not all links within the menu including sub-menu links. Then the .ondersteuning-color .sub-menu a:hover
is what defines the hover for sub-menu links.
Hope this helps.