w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
cannot make list item visible with > CSS selector

You cannot :hover over an element with display:none as it has no size... instead of working with display, you can work with visibility - which will leave an area to hover over.

like so:

theNestedPopupAnchor.parentNode.style.visibility = 'hidden'

.popups:hover > li {
     visibility: visible;
 }

http://www.w3schools.com/cssref/pr_class_visibility.asp





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.