I'm currently facing an issue with the menu that I recently coded: https://jsfiddle.net/nL124rLq/1/
In my CSS, I am using a general selector (~) and I have a feeling that this might be the root cause of the problem:
#nav #link1:hover ~ #flydown {
left:0;
display:block;
}
#nav #link2:hover ~ #flydown {
left:-100%;
display:block;
}
...and so forth.
Everything seems to be functioning properly, but once I stop hovering on the anchors, the sliding menu beneath the links disappears. It appears that my code is not set up to handle this scenario, and I'm struggling to find a solution.
I plan on adding sub-menus to the colored sections that make up the slider, so they need to be clickable and remain visible when the user hovers over them.
If it helps, I drew inspiration from this website:
Thank you all greatly in advance, and I apologize for the somewhat unclear question!