You need a proper list structure for this to work as you need to action the change when you hover on a list element and then can target the nested ul. In your example you are saying "a:hover ul" and a ul can never be inside an anchor element.