html - CSS-only nav menu - need root element to stay darkened when open -



html - CSS-only nav menu - need root element to stay darkened when open -

i have css-only navigation menu i'm trying finish up. finish except 1 thing: when user hovers on element submenu navigates downwards submenu root element goes white. root navigation element remain darkened when submenu open. below codepen implementation far:

http://codepen.io/anon/pen/ijjyb

can help me finish this?

change selector (line 51):

#navmenu > ul li.has-sub > a.active, #navmenu > ul li.has-sub > a:hover

to this:

#navmenu > ul li.has-sub > a.active, #navmenu > ul li.has-sub:hover >

this results in :hover action still beingness active when user in submenu not children of <a>- <li>-tag

html css navbar

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -